-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
32 lines (22 loc) · 905 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
# 1: Set the minimum required version of CMake to be 3.10
cmake_minimum_required(VERSION 3.10)
project(mikelibcpp
VERSION 1.0.5
DESCRIPTION "Mike's personal C++ library"
HOMEPAGE_URL https://github.com/msoulier/mikelibcpp)
set(CMAKE_C_STANDARD 17)
set(CMAKE_C_STANDARD_REQUIRED True)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)
#set(CMAKE_CXX_COMPILER "/usr/bin/clang++")
# Silence warning
add_compile_options(-Wno-format-security)
configure_file(config.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h @ONLY)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../mikelibc mikebuild)
file(GLOB SRC_FILES "*.cpp")
add_library(mikecpp STATIC ${SRC_FILES})
target_include_directories(mikecpp
PUBLIC ${CMAKE_CURRENT_BINARY_DIR}
PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../mikelibc)
target_link_libraries(mikecpp PUBLIC mike)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/t)