-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCMakeLists.txt
32 lines (28 loc) · 866 Bytes
/
CMakeLists.txt
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
29
30
31
32
cmake_minimum_required(VERSION 3.15)
project("dl-examples" NONE)
if(WIN32)
enable_language(CXX)
else()
enable_language(CXX C ASM)
endif()
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED YES)
set(CMAKE_CXX_EXTENSIONS OFF)
if(MSVC)
add_compile_options($<$<COMPILE_LANGUAGE:CXX>:/W3>)
else()
add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-Wall>)
add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-Wconversion>)
add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-Wsign-conversion>)
add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-Wsign-compare>)
endif()
add_subdirectory("repromath")
add_subdirectory("lazyrepromath")
add_subdirectory("lazydemo")
add_subdirectory("apidemo")
add_subdirectory("pyapidemo")
if(WIN32 AND MSVC)
add_subdirectory("whereispython")
add_subdirectory("plugindemo")
endif()
add_subdirectory("tlsdemo")