-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCMakeLists.txt
66 lines (57 loc) · 1.32 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
54
55
56
57
58
59
60
61
62
63
64
65
66
cmake_minimum_required( VERSION 3.2.2 )
project( Intriman )
### Standard
set( CMAKE_CXX_STANDARD 17 )
set( CMAKE_CXX_STANDARD_REQUIRED ON )
set( CMAKE_CXX_EXTENSIONS OFF )
### Verbosity
set( CMAKE_COLOR_MAKEFILE ON )
set( CMAKE_VERBOSE_MAKEFILE ON )
set( CMAKE_EXPORT_COMPILE_COMMANDS ON )
### Optimizations
if( MSVC )
add_compile_options( /W3 )
elseif( CMAKE_COMPILER_IS_GNUCXX )
add_compile_options( -m64 )
add_compile_options( -march=native )
add_compile_options( -Ofast )
add_compile_options( -Wall )
add_compile_options( -Wextra )
endif()
### Targets
add_executable(
Intriman
source/Intriman/main.cpp
source/Intriman/Intriman.cpp
source/Intriman/Settings.cpp
source/Intriman/Generators/Text.cpp
source/Intriman/Generators/Roff.cpp
source/Intriman/Generators/Markdown.cpp
### pugixml
dependencies/pugixml/src/pugiconfig.hpp
dependencies/pugixml/src/pugixml.hpp
dependencies/pugixml/src/pugixml.cpp
)
if( MSVC )
elseif( CMAKE_COMPILER_IS_GNUCXX )
target_link_libraries(
Intriman
stdc++fs
)
endif()
target_include_directories(
Intriman
PRIVATE
include
dependencies/pugixml/src
)
### Download data-latest.xml listing
message(
STATUS "Downloading data-latest.xml from intel..."
)
file(
DOWNLOAD
"https://software.intel.com/sites/landingpage/IntrinsicsGuide/files/data-latest.xml"
"./data-latest.xml"
SHOW_PROGRESS
)