-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt_macos
executable file
·67 lines (55 loc) · 1.63 KB
/
CMakeLists.txt_macos
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
cmake_minimum_required(VERSION 3.14)
project(header_docu_qt LANGUAGES CXX)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Core)
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Core)
#add_executable(
# header_docu_qt
# main.cpp
# Includes/cxxopts.hpp
# Includes/inicpp.h
# Includes/rz_inifile.h
# Includes/rz_inifile.cpp
# Includes/rz_snippets.h
# Includes/rz_snippets.cpp
# Includes/rz_header_docu_plugins.h
# Includes/rz_datetime.h
# Includes/rz_datetime.cpp
# Includes/rz_dirfileinfo.h
# Includes/rz_dirfileinfo.cpp
# Includes/rz_inoutput.h
# Includes/rz_inoutput.cpp
# Includes/rz_dofile.h
# Includes/rz_dofile.cpp)
# MACOS
add_executable(
header_docu_qt MACOSX_BUNDLE
main.cpp
Includes/cxxopts.hpp
Includes/inicpp.h
Includes/rz_inifile.h
Includes/rz_inifile.cpp
Includes/rz_snippets.h
Includes/rz_snippets.cpp
Includes/rz_header_docu_plugins.h
Includes/rz_datetime.h
Includes/rz_datetime.cpp
Includes/rz_dirfileinfo.h
Includes/rz_dirfileinfo.cpp
Includes/rz_inoutput.h
Includes/rz_inoutput.cpp
Includes/rz_dofile.h
Includes/rz_dofile.cpp)
set_target_properties(header_docu_qt PROPERTIES
BUNDLE True
MACOSX_BUNDLE_GUI_IDENTIFIER net.hase-zheng.style.identifier.header_docu_qt
MACOSX_BUNDLE_BUNDLE_NAME header_docu_qt
MACOSX_BUNDLE_BUNDLE_VERSION "0.1"
MACOSX_BUNDLE_SHORT_VERSION_STRING "0.1"
#MACOSX_BUNDLE_INFO_PLIST ${CMAKE_SOURCE_DIR}/cmake/customtemplate.plist.in
)
target_link_libraries(header_docu_qt Qt${QT_VERSION_MAJOR}::Core)