diff options
Diffstat (limited to 'meson/test cases/cmake/1 basic/subprojects/cmMod/CMakeLists.txt')
-rw-r--r-- | meson/test cases/cmake/1 basic/subprojects/cmMod/CMakeLists.txt | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/meson/test cases/cmake/1 basic/subprojects/cmMod/CMakeLists.txt b/meson/test cases/cmake/1 basic/subprojects/cmMod/CMakeLists.txt new file mode 100644 index 000000000..2197667a3 --- /dev/null +++ b/meson/test cases/cmake/1 basic/subprojects/cmMod/CMakeLists.txt @@ -0,0 +1,20 @@ +cmake_minimum_required(VERSION 3.5) + +project(cmMod) +set (CMAKE_CXX_STANDARD 14) + +include_directories(${CMAKE_CURRENT_BINARY_DIR}) + +add_definitions("-DDO_NOTHING_JUST_A_FLAG=1") + +add_library(cmModLib++ SHARED cmMod.cpp) +target_compile_definitions(cmModLib++ PRIVATE MESON_MAGIC_FLAG=21) +target_compile_definitions(cmModLib++ INTERFACE MESON_MAGIC_FLAG=42) + +# Test PCH support +if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.16.0") + target_precompile_headers(cmModLib++ PRIVATE "cpp_pch.hpp") +endif() + +include(GenerateExportHeader) +generate_export_header(cmModLib++) |