-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
29 lines (22 loc) · 869 Bytes
/
Copy pathCMakeLists.txt
File metadata and controls
29 lines (22 loc) · 869 Bytes
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
cmake_minimum_required(VERSION 3.13)
project(utfia)
enable_testing()
option(UTFIA_NO_TESTS "Do not build test modules." OFF)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/_bin)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/_bin)
add_compile_options(
"$<$<CXX_COMPILER_ID:GNU,Clang,AppleClang>:-fPIC;-Wpedantic;-Wall;-Wextra;-Wno-long-long;-std=c++03>"
"$<$<NOT:$<CXX_COMPILER_ID:MSVC>>:$<$<CONFIG:Release,RelWithDebInfo>:-O3>>"
"$<$<CXX_COMPILER_ID:MSVC>:$<$<CONFIG:Release,RelWithDebInfo>:-Ox;-W4>>"
)
add_definitions(-D_SCL_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_WARNINGS)
add_library(utfia INTERFACE)
target_include_directories(utfia INTERFACE .)
if (NOT UTFIA_NO_TESTS)
if (NOT TARGET utee)
set(UTEE_NO_TESTS ON)
add_subdirectory(libraries/utee)
endif()
add_subdirectory(tests/utfia)
add_subdirectory(tests/utfia.benchmark)
endif()