diff options
Diffstat (limited to 'nihil.ucl/CMakeLists.txt')
| -rw-r--r-- | nihil.ucl/CMakeLists.txt | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/nihil.ucl/CMakeLists.txt b/nihil.ucl/CMakeLists.txt new file mode 100644 index 0000000..9d8ab3a --- /dev/null +++ b/nihil.ucl/CMakeLists.txt @@ -0,0 +1,46 @@ +# This source code is released into the public domain. + +pkg_check_modules(LIBUCL REQUIRED libucl) + +add_library(nihil.ucl STATIC) +target_link_libraries(nihil.ucl PRIVATE nihil.error nihil.monad) + +target_sources(nihil.ucl + PUBLIC FILE_SET modules TYPE CXX_MODULES FILES + nihil.ucl.ccm + emit.ccm + errc.ccm + object.ccm + object_cast.ccm + parser.ccm + type.ccm + + array.ccm + boolean.ccm + integer.ccm + map.ccm + real.ccm + string.ccm + + PRIVATE + emit.cc + errc.cc + parser.cc + type.cc + + object.cc + boolean.cc + integer.cc + real.cc + string.cc +) + +target_compile_options(nihil.ucl PUBLIC ${LIBUCL_CFLAGS_OTHER}) +target_include_directories(nihil.ucl PUBLIC ${LIBUCL_INCLUDE_DIRS}) +target_link_libraries(nihil.ucl PUBLIC ${LIBUCL_LIBRARIES}) +target_link_directories(nihil.ucl PUBLIC ${LIBUCL_LIBRARY_DIRS}) + +if(NIHIL_TESTS) + add_subdirectory(tests) + enable_testing() +endif() |
