-
Notifications
You must be signed in to change notification settings - Fork 45
/
CMakeLists.txt
42 lines (34 loc) · 1.24 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
# Copyright (C) 2016-2017 Jonathan Müller <[email protected]>
# This file is subject to the license terms in the LICENSE file
# found in the top-level directory of this distribution.
cmake_minimum_required(VERSION 3.1)
project(STANDARDESE VERSION 0.5.2)
option(STANDARDESE_BUILD_TOOL "Build the standardese binary" ON)
option(STANDARDESE_BUILD_TEST "Build the standardese test suite" ON)
option(BUILD_SHARED_LIBS "Build shared libraries (.dll/.so/.dylib) instead of static ones (.lib/.a)" ON)
set(lib_dest "lib/standardese")
set(include_dest "include")
set(tool_dest "bin")
# add external libraries
include(external/external.cmake)
if (MSVC)
add_compile_options(
# Disable warnings
-D_CRT_SECURE_NO_WARNINGS
-D_SCL_SECURE_NO_WARNINGS
/wd4503 # decorated name length exceeded, name was truncated
/MP # Multi-processor compilation
)
endif()
set(CMAKE_EXPORT_COMPILE_COMMANDS on)
# subdirectories
add_subdirectory(src)
if(STANDARDESE_BUILD_TOOL)
add_subdirectory(tool)
endif()
if (STANDARDESE_BUILD_TEST)
add_subdirectory(test)
endif()
# install configuration
#install(EXPORT standardese DESTINATION "${lib_dest}")
#install(FILES standardese-config.cmake LICENSE DESTINATION "${lib_dest}")