-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
47 lines (36 loc) · 1.08 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
cmake_minimum_required (VERSION 3.10)
project(Sudoku CXX)
option(BUILD_SHARED_LIBS "Build libraries as DLLs" FALSE)
# Common compiler definitions
add_definitions(
-DNOMINMAX
-DWIN32_LEAN_AND_MEAN
-DVC_EXTRALEAN
-D_CRT_SECURE_NO_WARNINGS
-D_SECURE_SCL=0
-D_SCL_SECURE_NO_WARNINGS
)
# Common external libraries
find_package(nlohmann_json REQUIRED)
# Libraries
add_subdirectory(Analyzer)
add_subdirectory(Board)
add_subdirectory(Generator)
add_subdirectory(Solver)
# Applications
add_subdirectory(generate)
add_subdirectory(rate)
add_subdirectory(solve)
add_subdirectory(suggest)
add_subdirectory(profile)
#########################################################################
# Testing #
#########################################################################
include(CTest)
message(STATUS "Testing is enabled.")
if(BUILD_TESTING)
message(STATUS "BUILD_TESTING is on and tests are being built.")
add_subdirectory(test)
else()
message(STATUS "Turn on BUILD_TESTING to build tests.")
endif()