mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
This tool is currently very rudimentary. I pushed it because I need to collect responses from it from users with diverse graphics configurations, so I want the tool to be in the nightly builds. This affects no KiCad code.
29 lines
690 B
CMake
29 lines
690 B
CMake
include_directories( BEFORE
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
${CMAKE_SOURCE_DIR}/include
|
|
${OPENGL_INCLUDE_DIR}
|
|
${Boost_INCLUDE_DIR}
|
|
)
|
|
|
|
include_directories( SYSTEM
|
|
)
|
|
|
|
set( OGLTEST_FILES
|
|
kicad-ogltest.cpp
|
|
)
|
|
|
|
add_executable( kicad-ogltest ${OGLTEST_FILES} )
|
|
|
|
target_link_libraries( kicad-ogltest ${wxWidgets_LIBRARIES} ${OPENGL_LIBRARIES} ${GLEW_LIBRARIES} )
|
|
|
|
if( APPLE )
|
|
# puts binaries into the *.app bundle while linking
|
|
set_target_properties( kicad-ogltest PROPERTIES
|
|
RUNTIME_OUTPUT_DIRECTORY ${OSX_BUNDLE_BUILD_BIN_DIR}
|
|
)
|
|
else()
|
|
install( TARGETS kicad-ogltest
|
|
DESTINATION ${KICAD_BIN}
|
|
COMPONENT binary )
|
|
endif()
|