X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=src%2Fglxspheres%2FCMakeLists.txt;h=2fb7915243b42b5f0421c92070c118ab044af342;hb=699d45401ccc2d017abb606d84e28b8f4ed2d8fc;hp=4676ab4fcd7ecd42ed2d05532ff0b310b9a0f05e;hpb=efdbc27f2074c559c8bbd4c118c45fda53e7aa7a;p=vogl diff --git a/src/glxspheres/CMakeLists.txt b/src/glxspheres/CMakeLists.txt index 4676ab4..2fb7915 100644 --- a/src/glxspheres/CMakeLists.txt +++ b/src/glxspheres/CMakeLists.txt @@ -2,19 +2,17 @@ project(glxspheres) 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_X11_LIB} ${OPENGL_LIBRARY} m - GLU) + ${GLU_LIBRARIES}) build_options_finalize()