]> git.mxchange.org Git - simgear.git/blob - simgear/nasal/cppbind/CMakeLists.txt
cppbind: Tweak from_nasal error reporting
[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.hxx
8   to_nasal.hxx
9 )
10
11 set(DETAIL_HEADERS
12   detail/from_nasal_helper.hxx
13   detail/functor_templates.hxx
14   detail/nasal_traits.hxx
15   detail/to_nasal_helper.hxx
16 )
17
18 set(SOURCES
19   NasalHash.cxx
20   NasalString.cxx
21   detail/from_nasal_helper.cxx
22   detail/to_nasal_helper.cxx
23 )
24
25 simgear_component(nasal/cppbind nasal/cppbind "${SOURCES}" "${HEADERS}")
26 simgear_component(nasal/cppbind/detail nasal/cppbind/detail "" "${DETAIL_HEADERS}")
27
28 if(ENABLE_TESTS)
29
30 if (SIMGEAR_SHARED)
31     set(TEST_LIBS SimGearCore)
32 else()
33     set(TEST_LIBS SimGearCore ${CMAKE_THREAD_LIBS_INIT})
34 endif()
35
36   add_executable(test_cppbind cppbind_test.cxx)
37   add_test(test_cppbind ${EXECUTABLE_OUTPUT_PATH}/test_cppbind)
38   target_link_libraries(test_cppbind ${TEST_LIBS})
39 endif(ENABLE_TESTS)