Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
libvncserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rasky
libvncserver
Commits
da7cf4fe
Commit
da7cf4fe
authored
Jun 23, 2014
by
dscho
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6 from waldheinz/cmake-cleanup
Use CMAKE_CURRENT_*_DIR instead of CMAKE_*_DIR.
parents
8c21b31c
57fcf688
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
CMakeLists.txt
CMakeLists.txt
+12
-11
No files found.
CMakeLists.txt
View file @
da7cf4fe
...
@@ -17,14 +17,14 @@ set(VERSION_MINOR "9")
...
@@ -17,14 +17,14 @@ set(VERSION_MINOR "9")
set
(
VERSION_PATCHLEVEL
"10"
)
set
(
VERSION_PATCHLEVEL
"10"
)
set
(
PROJECT_BUGREPORT_PATH
"http://sourceforge.net/projects/libvncserver"
)
set
(
PROJECT_BUGREPORT_PATH
"http://sourceforge.net/projects/libvncserver"
)
set
(
CMAKE_C_FLAGS
"-O2 -W -Wall -g"
)
set
(
CMAKE_C_FLAGS
"-O2 -W -Wall -g"
)
set
(
LIBVNCSERVER_DIR
${
CMAKE_SOURCE_DIR
}
/libvncserver
)
set
(
LIBVNCSERVER_DIR
${
CMAKE_
CURRENT_
SOURCE_DIR
}
/libvncserver
)
set
(
COMMON_DIR
${
CMAKE_SOURCE_DIR
}
/common
)
set
(
COMMON_DIR
${
CMAKE_
CURRENT_
SOURCE_DIR
}
/common
)
set
(
LIBVNCCLIENT_DIR
${
CMAKE_SOURCE_DIR
}
/libvncclient
)
set
(
LIBVNCCLIENT_DIR
${
CMAKE_
CURRENT_
SOURCE_DIR
}
/libvncclient
)
set
(
LIBVNCSRVTEST_DIR
${
CMAKE_SOURCE_DIR
}
/examples
)
set
(
LIBVNCSRVTEST_DIR
${
CMAKE_
CURRENT_
SOURCE_DIR
}
/examples
)
set
(
LIBVNCCLITEST_DIR
${
CMAKE_SOURCE_DIR
}
/client_examples
)
set
(
LIBVNCCLITEST_DIR
${
CMAKE_
CURRENT_
SOURCE_DIR
}
/client_examples
)
include_directories
(
${
CMAKE_
SOURCE_DIR
}
${
CMAKE_BINARY_DIR
}
${
CMAKE_SOURCE_DIR
}
/libvncserver
${
CMAKE
_SOURCE_DIR
}
/common
)
include_directories
(
${
CMAKE_
CURRENT_SOURCE_DIR
}
${
CMAKE_CURRENT_BINARY_DIR
}
${
CMAKE_CURRENT_SOURCE_DIR
}
/libvncserver
${
CMAKE_CURRENT
_SOURCE_DIR
}
/common
)
find_package
(
ZLIB
)
find_package
(
ZLIB
)
find_package
(
JPEG
)
find_package
(
JPEG
)
...
@@ -167,8 +167,8 @@ TEST_BIG_ENDIAN(LIBVNCSERVER_WORDS_BIGENDIAN)
...
@@ -167,8 +167,8 @@ TEST_BIG_ENDIAN(LIBVNCSERVER_WORDS_BIGENDIAN)
# LIBVNCSERVER_ENOENT_WORKAROUND
# LIBVNCSERVER_ENOENT_WORKAROUND
# inline
# inline
configure_file
(
${
CMAKE_SOURCE_DIR
}
/rfb/rfbconfig.h.cmake
${
CMAKE_BINARY_DIR
}
/rfb/rfbconfig.h
)
configure_file
(
${
CMAKE_
CURRENT_
SOURCE_DIR
}
/rfb/rfbconfig.h.cmake
${
CMAKE_BINARY_DIR
}
/rfb/rfbconfig.h
)
configure_file
(
${
CMAKE_SOURCE_DIR
}
/rfb/rfbint.h.cmake
${
CMAKE_BINARY_DIR
}
/rfb/rfbint.h
)
configure_file
(
${
CMAKE_
CURRENT_
SOURCE_DIR
}
/rfb/rfbint.h.cmake
${
CMAKE_BINARY_DIR
}
/rfb/rfbint.h
)
set
(
LIBVNCSERVER_SOURCES
set
(
LIBVNCSERVER_SOURCES
${
LIBVNCSERVER_DIR
}
/main.c
${
LIBVNCSERVER_DIR
}
/main.c
...
@@ -280,6 +280,7 @@ target_link_libraries(vncclient
...
@@ -280,6 +280,7 @@ target_link_libraries(vncclient
${
ADDITIONAL_LIBS
}
${
ADDITIONAL_LIBS
}
${
ZLIB_LIBRARIES
}
${
ZLIB_LIBRARIES
}
${
JPEG_LIBRARIES
}
${
JPEG_LIBRARIES
}
${
GNUTLS_LIBRARIES
}
)
)
target_link_libraries
(
vncserver
target_link_libraries
(
vncserver
${
ADDITIONAL_LIBS
}
${
ADDITIONAL_LIBS
}
...
@@ -353,16 +354,16 @@ if(HAVE_FFMPEG)
...
@@ -353,16 +354,16 @@ if(HAVE_FFMPEG)
endif
(
HAVE_FFMPEG
)
endif
(
HAVE_FFMPEG
)
file
(
MAKE_DIRECTORY
${
CMAKE_BINARY_DIR
}
/examples
)
file
(
MAKE_DIRECTORY
${
CMAKE_
CURRENT_
BINARY_DIR
}
/examples
)
foreach
(
test
${
LIBVNCSERVER_TESTS
}
)
foreach
(
test
${
LIBVNCSERVER_TESTS
}
)
add_executable
(
examples/
${
test
}
${
LIBVNCSRVTEST_DIR
}
/
${
test
}
.c
)
add_executable
(
examples/
${
test
}
${
LIBVNCSRVTEST_DIR
}
/
${
test
}
.c
)
target_link_libraries
(
examples/
${
test
}
vncserver
${
CMAKE_THREAD_LIBS_INIT
}
)
target_link_libraries
(
examples/
${
test
}
vncserver
${
CMAKE_THREAD_LIBS_INIT
}
)
endforeach
(
test
${
LIBVNCSERVER_TESTS
}
)
endforeach
(
test
${
LIBVNCSERVER_TESTS
}
)
file
(
MAKE_DIRECTORY
${
CMAKE_BINARY_DIR
}
/client_examples
)
file
(
MAKE_DIRECTORY
${
CMAKE_
CURRENT_
BINARY_DIR
}
/client_examples
)
foreach
(
test
${
LIBVNCCLIENT_TESTS
}
)
foreach
(
test
${
LIBVNCCLIENT_TESTS
}
)
add_executable
(
client_examples/
${
test
}
${
LIBVNCCLITEST_DIR
}
/
${
test
}
.c
${
LIBVNCCLITEST_DIR
}
/
${${
test
}
_EXTRA_SOURCES
}
)
add_executable
(
client_examples/
${
test
}
${
LIBVNCCLITEST_DIR
}
/
${
test
}
.c
${
LIBVNCCLITEST_DIR
}
/
${${
test
}
_EXTRA_SOURCES
}
)
target_link_libraries
(
client_examples/
${
test
}
vncclient
${
CMAKE_THREAD_LIBS_INIT
}
${
GNUTLS_LIBRARIES
}
${
X11_LIBRARIES
}
${
SDL_LIBRARY
}
${
FFMPEG_LIBRARIES
}
)
target_link_libraries
(
client_examples/
${
test
}
vncclient
${
CMAKE_THREAD_LIBS_INIT
}
${
X11_LIBRARIES
}
${
SDL_LIBRARY
}
${
FFMPEG_LIBRARIES
}
)
endforeach
(
test
${
LIBVNCCLIENT_TESTS
}
)
endforeach
(
test
${
LIBVNCCLIENT_TESTS
}
)
install_targets
(
/lib vncserver
)
install_targets
(
/lib vncserver
)
...
...
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