Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
SRB2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
246
Issues
246
List
Board
Labels
Milestones
Merge Requests
71
Merge Requests
71
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
STJr
SRB2
Commits
e9fce200
Commit
e9fce200
authored
Oct 23, 2020
by
James R.
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master' into next
parents
86c38e6d
333d3a25
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
CMakeLists.txt
src/CMakeLists.txt
+8
-0
CMakeLists.txt
src/sdl/CMakeLists.txt
+4
-0
No files found.
src/CMakeLists.txt
View file @
e9fce200
...
...
@@ -233,6 +233,8 @@ set(SRB2_CONFIG_HAVE_OPENMPT ON CACHE BOOL
"Enable OpenMPT support."
)
set
(
SRB2_CONFIG_HAVE_CURL ON CACHE BOOL
"Enable curl support, used for downloading files via HTTP."
)
set
(
SRB2_CONFIG_HAVE_THREADS ON CACHE BOOL
"Enable multithreading support."
)
if
(
${
CMAKE_SYSTEM
}
MATCHES Windows
)
set
(
SRB2_CONFIG_HAVE_MIXERX ON CACHE BOOL
"Enable SDL Mixer X support."
)
...
...
@@ -473,6 +475,12 @@ if(${SRB2_CONFIG_HAVE_CURL})
endif
()
endif
()
if
(
${
SRB2_CONFIG_HAVE_THREADS
}
)
set
(
SRB2_HAVE_THREADS ON
)
set
(
SRB2_CORE_HEADERS
${
SRB2_CORE_HEADERS
}
${
CMAKE_CURRENT_SOURCE_DIR
}
/i_threads.h
)
add_definitions
(
-DHAVE_THREADS
)
endif
()
if
(
${
SRB2_CONFIG_HWRENDER
}
)
add_definitions
(
-DHWRENDER
)
set
(
SRB2_HWRENDER_SOURCES
...
...
src/sdl/CMakeLists.txt
View file @
e9fce200
...
...
@@ -55,6 +55,10 @@ set(SRB2_SDL2_HEADERS
sdlmain.h
)
if
(
${
SRB2_CONFIG_HAVE_THREADS
}
)
set
(
SRB2_SDL2_SOURCES
${
SRB2_SDL2_SOURCES
}
i_threads.c
)
endif
()
source_group
(
"Interface Code"
FILES
${
SRB2_SDL2_SOURCES
}
${
SRB2_SDL2_HEADERS
}
)
# Dependency
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment