(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).
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()