Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latest CMakefile.txt for all platforms #6

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
set minimum sfml to 2.5
Longwater1234 committed Mar 7, 2024
commit 52ac10a3d57523316eaf51a893f32b3bcc0a04c6
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ option(ENABLE_DEMO "build demo program.(Default:ON)" ON)
set(DEMO_EXE "demo_widgets")

# ##############################################################################
# IMPORTANT HINT: Tell CMake absolute directory you installed SFML libs
# HINT: Tell CMake which directory you installed SFML libs
###############################################################################
##### (WINDOWS)
# set(SFML_HOME "C:/SFML/SFML-2.6.1")
@@ -17,8 +17,9 @@ set(DEMO_EXE "demo_widgets")
set(ENABLE_DEMO TRUE)

# FIND SFML precompiled libs & headers
##############################################
# set(SFML_DIR ${SFML_HOME}/lib/cmake/SFML)
find_package(SFML 2.6 REQUIRED COMPONENTS "graphics" "window" "system")
find_package(SFML 2.5 REQUIRED COMPONENTS "graphics" "window" "system")
find_package(OpenGL REQUIRED)

# ##############################################################################
@@ -68,6 +69,7 @@ if(ENABLE_DEMO)


# INCLUDE SFML Headers
####################################################
# include_directories(${SFML_HOME}/include)

# COPY RESOURCES TO BUILD FOLDER (Windows & Linux)