(1) requires a symbolic link between libturbojpeg.so.0 to
libturbojpeg.so (within the search path)
(2) Switched ${X11_X11_LIB} to ${X11_LIBRARIES}
(3) Moved project definition to top of the file;
cmake_minimum_required(VERSION 2.8)
+project(vogltrace)
option(VOGLTRACE_NO_PUBLIC_EXPORTS "Don't define any public GL exports in libvogltraceXX.so, this .so will only be useful for manual loading" FALSE)
endif ()
find_package(X11 REQUIRED)
-project(vogltrace)
-
include_directories(${CMAKE_CURRENT_BINARY_DIR})
-
add_compiler_flag("-DVOGL_REMOTING")
set(SRC_LIST
voglcore
${CMAKE_THREAD_LIBS_INIT}
${CMAKE_DL_LIBS}
- ${X11_X11_LIB}
- libturbojpeg.a
+ ${X11_LIBRARIES}
rt
+ turbojpeg
)
build_options_finalize()