-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathCMakeLists.txt
61 lines (52 loc) · 1004 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
cmake_minimum_required( VERSION 3.8.0 )
project( DecimaTools )
set( CMAKE_CXX_STANDARD 17 )
set( CMAKE_CXX_STANDARD_REQUIRED ON )
set( CMAKE_CXX_EXTENSIONS OFF )
set( CMAKE_COLOR_MAKEFILE ON )
set( CMAKE_VERBOSE_MAKEFILE ON )
set( CMAKE_EXPORT_COMPILE_COMMANDS ON )
### External dependencies
add_subdirectory(extern)
### libDecima
add_library(
Decima
source/Decima/Decima.cpp
)
target_include_directories(
Decima
PUBLIC
include
)
target_link_libraries(
Decima
PUBLIC
mio
)
if( MSVC )
target_compile_options( Decima PUBLIC /W3 )
elseif( CMAKE_COMPILER_IS_GNUCXX )
target_compile_options( Decima PUBLIC -Wall )
target_compile_options( Decima PUBLIC -Wextra )
target_compile_options( Decima PUBLIC -march=skylake )
endif()
## Archive
add_executable(
Archive
tools/Archive.cpp
)
target_link_libraries(
Archive
PRIVATE
Decima
)
## Dump
add_executable(
Dump
tools/Dump.cpp
)
target_link_libraries(
Dump
PRIVATE
Decima
)