-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCMakeLists.txt
35 lines (29 loc) · 922 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
35
################################################################################
# Copyright (c) 2021, Initialsoft, Inc.
# All rights reserved.
#
# [description]
#
# author : hunt978([email protected])
# create : 2021-03-15 03:15:35 UTC
# modified : 2021-03-17 13:42:00 UTC
################################################################################
# cmake version
cmake_minimum_required(VERSION 3.5.0)
# project
project(workroom_sln)
# output
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_HOME_DIRECTORY}/build)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_HOME_DIRECTORY}/build)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_HOME_DIRECTORY}/build)
set(CMAKE_PDB_OUTPUT_DIRECTORY ${CMAKE_HOME_DIRECTORY}/build)
# debug
if(NOT CMAKE_DEBUG_POSTFIX)
set(CMAKE_DEBUG_POSTFIX d)
endif()
# import script
include(cmake/CXXHelper.cmake)
EnableCxx17()
# goto subs
add_subdirectory(src)
add_subdirectory(srcpp)