forked from SeriousAlexej/TabToolbar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
34 lines (25 loc) · 944 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.1)
set(CMAKE_CXX_STANDARD 11)
add_compile_options("$<$<C_COMPILER_ID:MSVC>:/utf-8>")
add_compile_options("$<$<CXX_COMPILER_ID:MSVC>:/utf-8>")
if(WIN32)
set(INSTALL_MISC_DIR .)
else()
set(INSTALL_MISC_DIR share/TabToolbar)
endif()
project(TabToolbar)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
set(TT_BUILD_EXAMPLES FALSE CACHE BOOL "Build example projects")
add_subdirectory(src/TabToolbar)
if(TT_BUILD_EXAMPLES)
add_subdirectory(examples/Test)
endif()
install(DIRECTORY include
DESTINATION .
COMPONENT devel
FILES_MATCHING PATTERN "*.h")
install(FILES LICENSE DESTINATION ${INSTALL_MISC_DIR})
install(FILES COPYING DESTINATION ${INSTALL_MISC_DIR})
install(FILES COPYING.LESSER DESTINATION ${INSTALL_MISC_DIR})
install(FILES cmake-modules/FindTabToolbar.cmake DESTINATION ${INSTALL_MISC_DIR}/cmake-modules)