-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathCMakeLists.txt
34 lines (27 loc) · 925 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
33
34
cmake_minimum_required(VERSION 3.14)
#set(CMAKE_VERBOSE_MAKEFILE ON)
project(csv2xls LANGUAGES CXX)
set(EXTERN_DEPENDENCIES_DIR ${CMAKE_CURRENT_SOURCE_DIR}/extern)
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules ${CMAKE_MODULE_PATH})
include(MunkeiVersionFromGit)
include(msvc_cplusplus)
include(catch2)
include(CTestConfig)
include(CTest)
include(warnings)
include(checkedcmd)
include(xlslib)
include(CppSkilledType)
include(CppFunComp)
enable_testing()
include_directories("${PROJECT_BINARY_DIR}")
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/csv2xlslib)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_EXTENSIONS OFF)
add_subdirectory(doc)
add_subdirectory(csv2xlslib)
add_subdirectory(csv2xlslib.Test )
add_executable(csv2xls csv2xls.cpp ${version_file})
target_compile_options( csv2xls PUBLIC ${WARNINGOPTS} )
target_link_libraries(csv2xls csv2xlslib -static)
install(TARGETS csv2xls DESTINATION bin)