forked from 0vercl0k/kdmp-parser
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
54 lines (43 loc) · 1.29 KB
/
Copy pathCMakeLists.txt
File metadata and controls
54 lines (43 loc) · 1.29 KB
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
# Axel '0vercl0k' Souchet - April 18 2020
# CMakeList.txt : CMake project for kdmp-parser, include source and define
# project specific logic here.
#
cmake_minimum_required (VERSION 3.8)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)
set(CMAKE_POSITION_INDEPENDENT_CODE True)
OPTION(BUILD_TESTS "Build and run tests" OFF)
OPTION(BUILD_PYTHON "Build python bindings" OFF)
project(kdmp-parser)
add_compile_options(
$<$<CXX_COMPILER_ID:MSVC>:/W4$<SEMICOLON>/WX>
$<$<CXX_COMPILER_ID:GNU>:-Wall$<SEMICOLON>-Wextra$<SEMICOLON>-pedantic$<SEMICOLON>-Werror>
$<$<CXX_COMPILER_ID:Clang>:-Wall$<SEMICOLON>-Wextra$<SEMICOLON>-pedantic$<SEMICOLON>-Werror>
)
add_subdirectory(src/lib)
add_subdirectory(src/parser)
if(BUILD_PYTHON)
add_subdirectory(src/python)
endif()
if(BUILD_TESTS)
add_subdirectory(src/tests)
add_subdirectory(src/testapp)
endif()
install(
TARGETS kdmp-parser
EXPORT kdmp-parser
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib
RUNTIME DESTINATION bin
)
install(
DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/
DESTINATION include
FILES_MATCHING PATTERN "*.h*")
install(TARGETS parser DESTINATION tools/kdmp-parser)
install(
EXPORT kdmp-parser
DESTINATION share/kdmp-parser
FILE kdmp-parserConfig.cmake
NAMESPACE kdmp-parser::
)