-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
31 lines (22 loc) · 839 Bytes
/
CMakeLists.txt
File metadata and controls
31 lines (22 loc) · 839 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
cmake_minimum_required (VERSION 3.8)
include(CMakeDependentOption)
if (POLICY CMP0141)
cmake_policy(SET CMP0141 NEW)
set(CMAKE_MSVC_DEBUG_INFORMATION_FORMAT "$<IF:$<AND:$<C_COMPILER_ID:MSVC>,$<CXX_COMPILER_ID:MSVC>>,$<$<CONFIG:Debug,RelWithDebInfo>:EditAndContinue>,$<$<CONFIG:Debug,RelWithDebInfo>:ProgramDatabase>>")
endif()
project (LuaTemplateLibrary)
add_subdirectory (Source)
#add_subdirectory (LTL)
cmake_dependent_option(LTL_TESTING "Build tests" ON
"CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR" OFF
)
if(LTL_TESTING)
find_package(GTest)
if(NOT GTest_FOUND)
set(gtest_force_shared_crt ON CACHE BOOL "Use /MD and /MDd" FORCE)
add_subdirectory(googletest EXCLUDE_FROM_ALL)
add_library(GTest::gtest ALIAS gtest)
endif()
enable_testing()
add_subdirectory(Tests)
endif()