]> git.mxchange.org Git - simgear.git/blob - simgear/nasal/cppbind/CMakeLists.txt
cppbind: automatic conversion of SGReferenced derived pointers.
[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   NasalObjectHolder.cxx
24   NasalString.cxx
25   detail/from_nasal_helper.cxx
26   detail/to_nasal_helper.cxx
27 )
28
29 simgear_component(nasal/cppbind nasal/cppbind "${SOURCES}" "${HEADERS}")
30 simgear_component(nasal/cppbind/detail nasal/cppbind/detail "" "${DETAIL_HEADERS}")
31
32 if(ENABLE_TESTS)
33   add_executable(test_cppbind cppbind_test.cxx)
34   add_test(cppbind ${EXECUTABLE_OUTPUT_PATH}/test_cppbind)
35   target_link_libraries(test_cppbind ${TEST_LIBS})
36 endif(ENABLE_TESTS)