diff options
Diffstat (limited to 'meson/test cases/cmake/19 advanced options/subprojects/cmOpts/CMakeLists.txt')
-rw-r--r-- | meson/test cases/cmake/19 advanced options/subprojects/cmOpts/CMakeLists.txt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/meson/test cases/cmake/19 advanced options/subprojects/cmOpts/CMakeLists.txt b/meson/test cases/cmake/19 advanced options/subprojects/cmOpts/CMakeLists.txt new file mode 100644 index 000000000..584841e87 --- /dev/null +++ b/meson/test cases/cmake/19 advanced options/subprojects/cmOpts/CMakeLists.txt @@ -0,0 +1,18 @@ +cmake_minimum_required(VERSION 3.7) + +project(CmOpts) + +set(CMAKE_CXX_STANDARD 98) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + +if(NOT "${SOME_CMAKE_VAR}" STREQUAL "something") + message(FATAL_ERROR "Setting the CMake var failed") +endif() + +add_library(cmModLib++ STATIC cmMod.cpp) +add_library(cmTestLib STATIC cmTest.cpp) +add_executable(testEXE main.cpp) + +target_link_libraries(testEXE cmModLib++) + +install(TARGETS cmTestLib ARCHIVE DESTINATION lib RUNTIME DESTINATION bin) |