Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F131294
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
2 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..9629f45
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,81 @@
+#Change this if you need to target a specific CMake version
+cmake_minimum_required(VERSION 3.1)
+set (CMAKE_CXX_STANDARD 11)
+
+# Enable debug symbols by default
+# must be done before project() statement
+if(NOT CMAKE_BUILD_TYPE)
+ set(CMAKE_BUILD_TYPE Debug CACHE STRING "Choose the type of build (Debug or Release)" FORCE)
+endif()
+# (you can also set it on the command line: -D CMAKE_BUILD_TYPE=Release)
+
+project(myproject)
+
+# Set version information in a config.h file
+set(myproject_VERSION_MAJOR 1)
+set(myproject_VERSION_MINOR 0)
+# configure_file(
+# "${PROJECT_SOURCE_DIR}/config.h.in"
+# "${PROJECT_BINARY_DIR}/config.h"
+# )
+include_directories("${PROJECT_BINARY_DIR}")
+include_directories(${YOUR_DIRECTORY})
+
+# Define sources and executable
+set(EXECUTABLE_NAME "DeerPortal")
+add_executable(${EXECUTABLE_NAME}
+ main.cpp
+ animatedsprite.cpp
+ animation.cpp
+ banner.cpp
+ boarddiamond.cpp
+ boarddiamondseq.cpp
+ boardelem.cpp
+ boardelems.cpp
+ bubble.cpp
+ calendar.cpp
+ card.cpp
+ cardsdeck.cpp
+ cardslist.cpp
+ character.cpp
+ command.cpp
+ credits.cpp
+ data.cpp
+ elem.cpp
+ game.cpp
+ grouphud.cpp
+ guirounddice.cpp
+ guiwindow.cpp
+ hover.cpp
+ particlesystem.cpp
+ pile.cpp
+ playerhud.cpp
+ rotateelem.cpp
+ rounddice.cpp
+ selector.cpp
+ soundfx.cpp
+ textureholder.cpp
+ tilemap.cpp)
+
+
+# Detect and add SFML
+set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake_modules" ${CMAKE_MODULE_PATH})
+#Find any version 2.X of SFML
+#See the FindSFML.cmake file for additional details and instructions
+find_package(SFML 2 REQUIRED network audio graphics window system)
+if(SFML_FOUND)
+ include_directories(${SFML_INCLUDE_DIR})
+ target_link_libraries(${EXECUTABLE_NAME} ${SFML_LIBRARIES} ${SFML_DEPENDENCIES})
+endif()
+
+
+# Install target
+install(TARGETS ${EXECUTABLE_NAME} DESTINATION bin)
+
+
+# CPack packaging
+include(InstallRequiredSystemLibraries)
+# set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/COPYING")
+set(CPACK_PACKAGE_VERSION_MAJOR "${myproject_VERSION_MAJOR}")
+set(CPACK_PACKAGE_VERSION_MINOR "${myproject_VERSION_MINOR}")
+include(CPack)
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Tue, Jun 16, 12:10 AM (2 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
70641
Default Alt Text
(2 KB)
Attached To
Mode
R82 deerportal
Attached
Detach File
Event Timeline