-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
53 lines (38 loc) · 1.15 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
48
49
50
51
52
53
cmake_minimum_required(VERSION 3.5 FATAL_ERROR)
project("iathena" LANGUAGES CXX)
# Define the path to custom cmake modules
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
# Define variables
include(variables)
# Retrieve project version
include(version)
# Use CTest for unitary testing
include(CTest)
# Execute subdirectories
add_subdirectory(${DOCS})
add_subdirectory(${INC})
add_subdirectory(${SRC})
add_subdirectory(${TST})
#cmake_minimum_required(VERSION 3.5)
#project(iathena VERSION 0.0)
#set(CMAKE_CXX_STANDARD 11)
#set(CMAKE_CXX_STANDARD_REQUIRED True)
#if (MSVC)
# add_compile_options(/W4)
#else()
# add_compile_options(-Wall -Wextra -Wpedantic)
#endif()
#file(GLOB iathena_SRC
# "*.hpp"
# "*.cpp"
#)
#add_executable(iathena ${iathena_SRC})
# Test exe
#add_executable(iathenaPERFT ${iathena_SRC})
#add_executable(iathenaMIRROR ${iathena_SRC})
# main exe target options
#target_compile_definitions(iathena PUBLIC "NPERFT" "NMIRROR" "NDEBUG")
#target_compile_options(iathena PUBLIC "-O3")
# perft target options
#target_compile_definitions(iathenaPERFT PUBLIC "NMIRROR" "PERFT_DEPTH=3")
#target_compile_definitions(iathenaMIRROR PUBLIC "NPERFT")