Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Печенин Данила Михайлович
Pacman
Commits
13a51863
Commit
13a51863
authored
3 weeks ago
by
Печенин Данила Михайлович
Browse files
Options
Download
Patches
Plain Diff
CMake is done for installing app on MacOS
parent
d55b9527
main
1 merge request
!1
MacOS app
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+14
-3
CMakeLists.txt
assets/icon.icns
+0
-0
assets/icon.icns
with
14 additions
and
3 deletions
+14
-3
CMakeLists.txt
+
14
−
3
View file @
13a51863
cmake_minimum_required
(
VERSION 3.12
)
project
(
Pacman
)
set
(
CMAKE_CXX_STANDARD 17
)
file
(
GLOB_RECURSE SOURCES source/*cpp
)
file
(
GLOB_RECURSE SOURCES source/*.cpp
)
set
(
MACOSX_BUNDLE TRUE
)
set
(
MACOSX_BUNDLE_BUNDLE_NAME
"Pacman"
)
set
(
MACOSX_BUNDLE_GUI_IDENTIFIER
"dpechenin"
)
set
(
MACOSX_BUNDLE_BUNDLE_VERSION
"1.0"
)
set
(
MACOSX_BUNDLE_SHORT_VERSION_STRING
"1.0"
)
set
(
SFML_STATIC_LIBRARIES TRUE
)
set
(
BUILD_SHARED_LIBS FALSE
)
...
...
@@ -11,9 +18,13 @@ include(FetchContent)
FetchContent_Declare
(
SFML GIT_REPOSITORY https://github.com/SFML/SFML.git GIT_TAG 2.6.1
)
FetchContent_MakeAvailable
(
SFML
)
add_executable
(
${
PROJECT_NAME
}
${
SOURCES
}
)
add_executable
(
${
PROJECT_NAME
}
MACOSX_BUNDLE
${
SOURCES
}
)
target_include_directories
(
${
PROJECT_NAME
}
PUBLIC
${
CMAKE_SOURCE_DIR
}
/source
)
target_compile_definitions
(
${
PROJECT_NAME
}
PUBLIC ASSETS_PATH=
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/assets/"
)
target_link_libraries
(
${
PROJECT_NAME
}
PRIVATE sfml-system sfml-window sfml-graphics
)
\ No newline at end of file
target_link_libraries
(
${
PROJECT_NAME
}
PRIVATE sfml-system sfml-window sfml-graphics
)
set_source_files_properties
(
assets/icon.icns PROPERTIES MACOSX_PACKAGE_LOCATION
"Resources"
)
target_sources
(
${
PROJECT_NAME
}
PRIVATE assets/icon.icns
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
assets/icon.icns
0 → 100644
+
0
−
0
View file @
13a51863
File added
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets