-
Notifications
You must be signed in to change notification settings - Fork 8
/
CMakeLists.txt
52 lines (45 loc) · 971 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# for FetchContent
cmake_minimum_required (VERSION 3.11 FATAL_ERROR)
set(PROJECT_NAME LinkageMechanismLaboratory)
project(${PROJECT_NAME})
# C++14
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
add_definitions(-DUNICODE -D_UNICODE)
#add_compile_options(/W4 /WX)
add_compile_options("$<$<CXX_COMPILER_ID:MSVC>:/utf-8>")
file(GLOB SOURCE_CODE
*.cpp
*.h
*.rc
Common/*.h
Common/*.cpp
Control/*.h
Control/*.cpp
Dialog/*.h
Dialog/*.cpp
Draw/*.h
Draw/*.cpp
Element/*.h
Element/*.cpp
gifenc/*.h
gifenc/*.c
gifenc/*.cpp
Solver/*.h
Solver/*.cpp
Tool/*.h
Tool/*.cpp
)
add_executable(LinkageMechanismLaboratory ${SOURCE_CODE})
target_include_directories(LinkageMechanismLaboratory PRIVATE
Common
Control
Dialog
Draw
Element
gifenc
Solver
Tool
)
set_target_properties(LinkageMechanismLaboratory PROPERTIES LINK_FLAGS "/SUBSYSTEM:WINDOWS")