Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
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
Container 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
Main
Synchronet
Commits
0be13f82
Commit
0be13f82
authored
11 years ago
by
deuce
Browse files
Options
Downloads
Patches
Plain Diff
Export cmake configs and install them.
Don't create options until there's a use for them.
parent
0947d80a
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/xpdev/CMakeLists.txt
+15
-17
15 additions, 17 deletions
src/xpdev/CMakeLists.txt
with
15 additions
and
17 deletions
src/xpdev/CMakeLists.txt
+
15
−
17
View file @
0be13f82
...
@@ -9,8 +9,6 @@ INCLUDE (FindSDL)
...
@@ -9,8 +9,6 @@ INCLUDE (FindSDL)
INCLUDE
(
FindX11
)
INCLUDE
(
FindX11
)
INCLUDE
(
FindPkgConfig
)
INCLUDE
(
FindPkgConfig
)
option
(
SDL_AUDIO
"Set to OFF to disable SDL for audio output"
ON
)
set
(
SOURCE
set
(
SOURCE
conwrap.c
conwrap.c
dat_file.c
dat_file.c
...
@@ -41,15 +39,13 @@ if(NOT WIN32)
...
@@ -41,15 +39,13 @@ if(NOT WIN32)
list
(
APPEND SOURCE xpsem.c
)
list
(
APPEND SOURCE xpsem.c
)
endif
()
endif
()
if
(
SDL_AUDIO
)
if
(
SDL_FOUND
)
if
(
SDL_FOUND
)
list
(
APPEND SOURCE sdlfuncs.c
)
list
(
APPEND SOURCE sdlfuncs.c
)
if
(
${
CMAKE_SYSTEM_NAME
}
MATCHES
"Darwin"
)
if
(
${
CMAKE_SYSTEM_NAME
}
MATCHES
"Darwin"
)
list
(
APPEND SOURCE SDLMain.m
)
list
(
APPEND SOURCE SDLMain.m
)
endif
()
endif
()
if
(
WIN32
)
if
(
WIN32
)
list
(
APPEND SOURCE SDL_win32_main.c
)
list
(
APPEND SOURCE SDL_win32_main.c
)
endif
()
endif
()
endif
()
endif
()
endif
()
...
@@ -126,11 +122,9 @@ if(HAS_SRANDOMDEV_FUNC)
...
@@ -126,11 +122,9 @@ if(HAS_SRANDOMDEV_FUNC)
target_compile_definitions
(
xpdev PRIVATE HAS_SRANDOMDEV_FUNC
)
target_compile_definitions
(
xpdev PRIVATE HAS_SRANDOMDEV_FUNC
)
endif
()
endif
()
if
(
SDL_AUDIO
)
if
(
SDL_FOUND
)
if
(
SDL_FOUND
)
target_include_directories
(
xpdev PRIVATE
${
SDL_INCLUDE_DIR
}
)
target_include_directories
(
xpdev PRIVATE
${
SDL_INCLUDE_DIR
}
)
target_compile_definitions
(
xpdev PUBLIC
${
WITH_SDL_AUDIO
}
)
target_compile_definitions
(
xpdev PRIVATE
${
WITH_SDL_AUDIO
}
)
endif
()
endif
()
endif
()
if
(
X11_FOUND
)
if
(
X11_FOUND
)
...
@@ -192,5 +186,9 @@ if(NOT WIN32)
...
@@ -192,5 +186,9 @@ if(NOT WIN32)
list
(
APPEND INSTALL_HEADERS xpsem.h
)
list
(
APPEND INSTALL_HEADERS xpsem.h
)
endif
()
endif
()
install
(
TARGETS xpdev DESTINATION bin
)
export
(
PACKAGE XPDev
)
export
(
TARGETS xpdev FILE xpdev.cmake
)
install
(
TARGETS xpdev DESTINATION lib EXPORT XPDev
)
install
(
FILES
${
INSTALL_HEADERS
}
DESTINATION include/xpdev
)
install
(
FILES
${
INSTALL_HEADERS
}
DESTINATION include/xpdev
)
install
(
EXPORT XPDev DESTINATION lib/cmake/xpdev
)
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