-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
49 lines (41 loc) · 1.39 KB
/
CMakeLists.txt
File metadata and controls
49 lines (41 loc) · 1.39 KB
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
43
44
45
46
47
48
49
#################################################################################################
# GENERAL CMAKE CONFIGURATION
#################################################################################################
project(code3)
# Set conventional loops
set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true)
# Minimum cmake version
cmake_minimum_required(VERSION 3.0.2)
# CMake policy: Automatically link Qt executables to qtmain.lib target on Windows
cmake_policy(SET CMP0020 NEW)
# CMake policy: Ignore COMPILE_DEFINITIONS_<Config> properties.
cmake_policy(SET CMP0043 NEW)
#################################################################################################
# GENERAL VARIABLES
#################################################################################################
# Install path
if(UNIX)
if(APPLE)
# MacOS X
# Due to the special bundle structure ignore
# the prefix eventually set by the user.
set(CMAKE_INSTALL_PREFIX ${CMAKE_BINARY_DIR}/Code3.app)
else()
# Linux / BSD
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
#fix package build
if(PREFIX)
set(CMAKE_INSTALL_PREFIX ${PREFIX})
else()
set(CMAKE_INSTALL_PREFIX /usr/local)
endif()
endif()
endif()
elseif(WIN32)
set(CMAKE_INSTALL_PREFIX ${CMAKE_BINARY_DIR}/release)
endif()
IF(APPLE)
SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH ON)
ENDIF(APPLE)
add_subdirectory(code3tags)
add_subdirectory(code3)