]> git.mxchange.org Git - simgear.git/blob - simgear/nasal/cppbind/CMakeLists.txt
Make old gcc happy
[simgear.git] / simgear / nasal / cppbind / CMakeLists.txt
1 include (SimGearComponent)
2
3 set(HEADERS
4   Ghost.hxx
5   NasalHash.hxx
6   NasalString.hxx
7   from_nasal_detail.hxx
8   from_nasal.hxx
9   nasal_traits.hxx
10   to_nasal.hxx
11 )
12
13 set(DETAIL_HEADERS
14   detail/functor_templates.hxx
15 )
16
17 set(SOURCES
18   NasalHash.cxx
19   NasalString.cxx
20   from_nasal.cxx
21   to_nasal.cxx
22 )
23
24 simgear_component(nasal/cppbind nasal/cppbind "${SOURCES}" "${HEADERS}")
25 simgear_component(nasal/cppbind/detail nasal/cppbind/detail "" "${DETAIL_HEADERS}")
26
27 if(ENABLE_TESTS)
28
29 if (SIMGEAR_SHARED)
30     set(TEST_LIBS SimGearCore)
31 else()
32     set(TEST_LIBS SimGearCore ${CMAKE_THREAD_LIBS_INIT})
33 endif()
34
35   add_executable(test_cppbind cppbind_test.cxx)
36   add_test(test_cppbind ${EXECUTABLE_OUTPUT_PATH}/test_cppbind)
37   target_link_libraries(test_cppbind ${TEST_LIBS})
38 endif(ENABLE_TESTS)