From 699d45401ccc2d017abb606d84e28b8f4ed2d8fc Mon Sep 17 00:00:00 2001 From: Gregory King Date: Mon, 17 Mar 2014 12:46:56 -0700 Subject: [PATCH] Reworked glxspheres/CMakeLists.txt (1) find_package(GLU REQUIRED); (2) added the variable glxsphere_SRC (instead of aux_source_directory); (3) added appropriate entry to within target_link_libraries (GLU_LIBRARIES). --- src/glxspheres/CMakeLists.txt | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/glxspheres/CMakeLists.txt b/src/glxspheres/CMakeLists.txt index e96910e..2fb7915 100644 --- a/src/glxspheres/CMakeLists.txt +++ b/src/glxspheres/CMakeLists.txt @@ -3,19 +3,16 @@ cmake_minimum_required(VERSION 2.8) include("${SRC_DIR}/build_options.cmake") find_package(X11 REQUIRED) +find_package(GLU REQUIRED) -aux_source_directory(. SRC_LIST) +set(glxsphere_SRC glxspheres.c) -include_directories( - ${PROJECT_SOURCE_DIR}/../include - ) - -add_executable(${PROJECT_NAME} ${SRC_LIST}) +add_executable(${PROJECT_NAME} ${glxsphere_SRC}) target_link_libraries(${PROJECT_NAME} ${X11_X11_LIB} ${OPENGL_LIBRARY} m - GLU) + ${GLU_LIBRARIES}) build_options_finalize() -- 2.43.0