X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fenvironment%2FCMakeLists.txt;h=d5255b041b8cfcbdebcf537aa6f294ba4ac1a146;hb=a57e969639575643d6961344f4904c04d8415de0;hp=ae641d181c622cf41cb60dd9dfff568d9aa5f3ec;hpb=7a52c2fa71355631a559d74e0860fa6c5efa424e;p=simgear.git diff --git a/simgear/environment/CMakeLists.txt b/simgear/environment/CMakeLists.txt index ae641d18..d5255b04 100644 --- a/simgear/environment/CMakeLists.txt +++ b/simgear/environment/CMakeLists.txt @@ -4,15 +4,20 @@ include (SimGearComponent) set(HEADERS metar.hxx precipitation.hxx) set(SOURCES metar.cxx precipitation.cxx) -simgear_component(environment environment "${SOURCES}" "${HEADERS}") +simgear_scene_component(environment environment "${SOURCES}" "${HEADERS}") if(ENABLE_TESTS) add_executable(test_metar test_metar.cxx) -target_link_libraries(test_metar - sgenvironment sgstructure sgmisc sgdebug - ${CMAKE_THREAD_LIBS_INIT} - ${ZLIB_LIBRARY} - ${RT_LIBRARY}) - + +if (SIMGEAR_SHARED) + target_link_libraries(test_metar SimGearScene) +else() + target_link_libraries(test_metar + SimGearScene SimGearCore + ${CMAKE_THREAD_LIBS_INIT} + ${ZLIB_LIBRARY} + ${RT_LIBRARY}) +endif() + add_test(metar ${EXECUTABLE_OUTPUT_PATH}/test_metar) endif(ENABLE_TESTS)