Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GAME INSA PROJECT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
3EII INFO LKCH
GAME INSA PROJECT
Commits
e7b91932
Commit
e7b91932
authored
4 years ago
by
Corto.Cabantous
Browse files
Options
Downloads
Patches
Plain Diff
cmakelist pour mac et windows
parent
40973d5e
No related branches found
Branches containing commit
No related tags found
4 merge requests
!8
Modele
,
!7
Modele
,
!6
Modele
,
!5
Modele Version 1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
GAME/CMakeLists.txt
+28
-6
28 additions, 6 deletions
GAME/CMakeLists.txt
with
28 additions
and
6 deletions
GAME/CMakeLists.txt
+
28
−
6
View file @
e7b91932
cmake_minimum_required
(
VERSION 3.17
)
cmake_minimum_required
(
VERSION 3.17
)
project
(
INSAGAME C
)
project
(
INSAGAME C
)
include_directories
(
include
)
set
(
CMAKE_C_STANDARD 90
)
set
(
CMAKE_C_STANDARD 90
)
set
(
SDL2_INCLUDE_DIR C:/TDM-GCC-64/x86_64-w64-mingw32/include
)
set
(
SDL2_LIB_DIR C:/TDM-GCC-64/x86_64-w64-mingw32/lib
)
file
(
GLOB_RECURSE SOURCES
"src/*c"
main.c
)
if
(
${
WING32
}
)
add_executable
(
INSAGAME
${
SOURCES
}
)
message
(
[STATUS]
" os Windows"
)
target_link_libraries
(
${
PROJECT_NAME
}
mingw32 SDL2main SDL2 SDL2_image
)
include_directories
(
include
)
set
(
SDL2_INCLUDE_DIR C:/TDM-GCC-64/x86_64-w64-mingw32/include
)
set
(
SDL2_LIB_DIR C:/TDM-GCC-64/x86_64-w64-mingw32/lib
)
file
(
GLOB_RECURSE SOURCES
"src/*c"
main.c
)
add_executable
(
INSAGAME
${
SOURCES
}
)
target_link_libraries
(
${
PROJECT_NAME
}
mingw32 SDL2main SDL2 SDL2_image
)
else
(
${
APPLE
}
)
message
(
[STATUS]
"os Mac"
)
set
(
CMAKE_MODULE_PATH
${
CMAKE_MODULE_PATH
}
"
${
CMAKE_SOURCE_DIR
}
/cmake/"
)
find_package
(
SDL2 REQUIRED
)
include_directories
(
${
SDL2_INCLUDE_DIRS
}
"/usr/local/Cellar/sdl2_image/2.0.5/include/SDL2"
"include"
)
file
(
GLOB_RECURSE SOURCES
"src/*c"
main.c
)
add_executable
(
INSAGAME
${
SOURCES
}
)
target_link_libraries
(
${
PROJECT_NAME
}
${
SDL2_LIBRARIES
}
"-L/usr/local/Cellar/sdl2_image/2.0.5/lib -lSDL2"
)
endif
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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