2017-03-29 20:19:43 +00:00
|
|
|
include_directories( BEFORE
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
${CMAKE_SOURCE_DIR}/include
|
|
|
|
${OPENGL_INCLUDE_DIR}
|
2017-04-06 01:00:51 +00:00
|
|
|
${GLEW_INCLUDE_DIR}
|
|
|
|
${GLM_INCLUDE_DIR}
|
2017-03-29 20:19:43 +00:00
|
|
|
${Boost_INCLUDE_DIR}
|
|
|
|
)
|
|
|
|
|
2017-03-29 22:43:13 +00:00
|
|
|
include_directories(
|
2020-01-22 23:27:20 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/include
|
|
|
|
${CMAKE_SOURCE_DIR}/common
|
2017-03-29 22:43:13 +00:00
|
|
|
${INC_AFTER}
|
2017-03-29 20:19:43 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
set( OGLTEST_FILES
|
|
|
|
kicad-ogltest.cpp
|
|
|
|
)
|
|
|
|
|
2017-05-17 12:14:18 +00:00
|
|
|
add_executable( kicad-ogltest WIN32
|
2017-04-06 20:35:08 +00:00
|
|
|
${OGLTEST_FILES} )
|
2017-03-29 20:19:43 +00:00
|
|
|
|
2017-03-29 22:43:13 +00:00
|
|
|
target_link_libraries( kicad-ogltest
|
2020-01-07 17:12:59 +00:00
|
|
|
kimath
|
2017-03-29 22:43:13 +00:00
|
|
|
gal
|
|
|
|
common
|
2020-01-07 17:12:59 +00:00
|
|
|
${OPENGL_LIBRARIES}
|
2017-03-29 22:43:13 +00:00
|
|
|
${wxWidgets_LIBRARIES} )
|
2017-03-29 20:19:43 +00:00
|
|
|
|
|
|
|
if( APPLE )
|
2019-12-25 04:17:35 +00:00
|
|
|
if( KICAD_USE_OCC )
|
|
|
|
set( KICAD_BUNDLE_LIBS ${OCC_LIBRARIES} )
|
|
|
|
endif()
|
2017-05-17 12:14:18 +00:00
|
|
|
# puts binary into the main kicad.app bundle while linking
|
2017-03-29 20:19:43 +00:00
|
|
|
set_target_properties( kicad-ogltest PROPERTIES
|
|
|
|
RUNTIME_OUTPUT_DIRECTORY ${OSX_BUNDLE_BUILD_BIN_DIR}
|
|
|
|
)
|
2017-05-17 12:14:18 +00:00
|
|
|
# bundle dependencies, rewrite binary to use bundled libraries
|
|
|
|
install( CODE "
|
|
|
|
# override default embedded path settings
|
|
|
|
${OSX_BUNDLE_OVERRIDE_PATHS}
|
|
|
|
|
|
|
|
# do all the work
|
|
|
|
include( BundleUtilities )
|
|
|
|
fixup_bundle( ${OSX_BUNDLE_BUILD_BIN_DIR}/kicad-ogltest
|
|
|
|
\"\"
|
2019-12-25 04:17:35 +00:00
|
|
|
\" ${KICAD_BUNDLE_LIBS}\"
|
2017-05-17 12:14:18 +00:00
|
|
|
)
|
|
|
|
" COMPONENT Runtime
|
|
|
|
)
|
2017-03-29 20:19:43 +00:00
|
|
|
else()
|
|
|
|
install( TARGETS kicad-ogltest
|
|
|
|
DESTINATION ${KICAD_BIN}
|
|
|
|
COMPONENT binary )
|
|
|
|
endif()
|