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