simgear_component(magvar magvar "${SOURCES}" "${HEADERS}")
if(ENABLE_TESTS)
-add_executable(test_magvar testmagvar.cxx )
-
-if (SIMGEAR_SHARED)
+ add_executable(test_magvar testmagvar.cxx )
target_link_libraries(test_magvar SimGearCore)
-else()
- target_link_libraries(test_magvar sgmagvar)
-endif()
-
endif(ENABLE_TESTS)