]> git.mxchange.org Git - simgear.git/blob - simgear/nasal/cppbind/CMakeLists.txt
CMake: Create list of libs for testing only once
[simgear.git] / simgear / nasal / cppbind / CMakeLists.txt
1 include (SimGearComponent)
2
3 set(HEADERS
4   Ghost.hxx
5   NasalCallContext.hxx
6   NasalHash.hxx
7   NasalString.hxx
8   from_nasal.hxx
9   to_nasal.hxx
10 )
11
12 set(DETAIL_HEADERS
13   detail/from_nasal_helper.hxx
14   detail/functor_templates.hxx
15   detail/nasal_traits.hxx
16   detail/to_nasal_helper.hxx
17 )
18
19 set(SOURCES
20   NasalHash.cxx
21   NasalString.cxx
22   detail/from_nasal_helper.cxx
23   detail/to_nasal_helper.cxx
24 )
25
26 simgear_component(nasal/cppbind nasal/cppbind "${SOURCES}" "${HEADERS}")
27 simgear_component(nasal/cppbind/detail nasal/cppbind/detail "" "${DETAIL_HEADERS}")
28
29 if(ENABLE_TESTS)
30   add_executable(test_cppbind cppbind_test.cxx)
31   add_test(test_cppbind ${EXECUTABLE_OUTPUT_PATH}/test_cppbind)
32   target_link_libraries(test_cppbind ${TEST_LIBS})
33 endif(ENABLE_TESTS)