Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Cristian Adam
CMake
Commits
532d5944
Commit
532d5944
authored
Apr 21, 2009
by
Bill Hoffman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ENH: sneak a test into RC 5
parent
54d5563c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
Tests/X11/CMakeLists.txt
Tests/X11/CMakeLists.txt
+8
-3
No files found.
Tests/X11/CMakeLists.txt
View file @
532d5944
...
...
@@ -6,6 +6,7 @@ INCLUDE (${CMAKE_ROOT}/Modules/FindX11.cmake)
MESSAGE
(
"X11_FOUND:
${
X11_FOUND
}
"
)
ADD_EXECUTABLE
(
UseX11 X11.c
)
install
(
TARGETS UseX11 DESTINATION bin
)
# so for universal binaries this test will fail if
#
...
...
@@ -26,10 +27,14 @@ IF(X11_FOUND)
IF
(
APPLE
)
ADD_EXECUTABLE
(
HelloWorldX11 HelloWorldX11.cxx
)
TARGET_LINK_LIBRARIES
(
HelloWorldX11
${
X11_LIBRARIES
}
)
install
(
TARGETS HelloWorldX11 DESTINATION bin
)
# build a CPack driven installer package
install
(
TARGETS HelloWorldX11 DESTINATION bin
)
set
(
CPACK_BINARY_OSXX11 ON CACHE BOOL
""
FORCE
)
set
(
CPACK_BINARY_PACKAGEMAKER OFF CACHE BOOL
""
FORCE
)
set
(
CPACK_PACKAGE_NAME HelloWorldX11Package
)
set
(
CPACK_PACKAGE_EXECUTABLES HelloWorldX11 HelloWorldX11
)
include
(
CPack
)
ENDIF
(
APPLE
)
ENDIF
(
X11_FOUND
)
# build a CPack driven installer package
include
(
CPack
)
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