Sha256: 6d33a12f344bd40a5f195ac392a05dd5973d06bfbe4ab1f048871bd984524657

Contents?: true

Size: 819 Bytes

Versions: 21

Compression:

Stored size: 819 Bytes

Contents

cmake_minimum_required(VERSION 2.8.12)
project(glew-cmake-test)

find_package(GLEW REQUIRED CONFIG)
find_package(GLEW REQUIRED CONFIG) # call twice to test multiple call
find_package(OpenGL REQUIRED)

add_executable(cmake-test main.c)
set_target_properties(cmake-test PROPERTIES DEBUG_POSTFIX _d)
target_link_libraries(cmake-test PRIVATE GLEW::GLEW ${OPENGL_LIBRARIES})
target_include_directories(cmake-test PRIVATE ${OPENGL_INCLUDE_DIR})

if(CMAKE_VERSION VERSION_LESS 3.0)
    set(cgex $<CONFIGURATION>)
else()
    set(cgex $<CONFIG>)
endif()

target_compile_definitions(cmake-test PRIVATE
    -DGLEW_CMAKE_TEST_CONFIG=${cgex}
    -DGLEW_CMAKE_TEST_TARGET_FILE_NAME=$<TARGET_FILE_NAME:GLEW::GLEW>
    -DGLEW_CMAKE_TEST_TARGET_TYPE=$<TARGET_PROPERTY:GLEW::GLEW,TYPE>
    )

install(TARGETS cmake-test DESTINATION bin)

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
pixo-0.4.5 ext/pixo/ext/glew/build/cmake/testbuild/CMakeLists.txt
pixo-0.4.4 ext/pixo/ext/glew/build/cmake/testbuild/CMakeLists.txt
pixo-0.4.3 ext/pixo/ext/glew/build/cmake/testbuild/CMakeLists.txt
pixo-0.4.2 ext/pixo/ext/glew/build/cmake/testbuild/CMakeLists.txt
pixo-0.4.1 ext/pixo/ext/glew/build/cmake/testbuild/CMakeLists.txt
pixo-0.4.0 ext/pixo/ext/glew/build/cmake/testbuild/CMakeLists.txt
pixo-0.3.2 ext/pixo/ext/glew/build/cmake/testbuild/CMakeLists.txt
pixo-0.3.1 ext/pixo/ext/glew/build/cmake/testbuild/CMakeLists.txt
pixo-0.3.0 ext/pixo/ext/glew/build/cmake/testbuild/CMakeLists.txt
pixo-0.2.6 ext/pixo/ext/glew/build/cmake/testbuild/CMakeLists.txt
pixo-0.2.5 ext/pixo/ext/glew/build/cmake/testbuild/CMakeLists.txt
pixo-0.2.4 ext/pixo/ext/glew/build/cmake/testbuild/CMakeLists.txt
pixo-0.2.3 ext/pixo/ext/glew/build/cmake/testbuild/CMakeLists.txt
pixo-0.2.2 ext/pixo/ext/glew/build/cmake/testbuild/CMakeLists.txt
pixo-0.2.1 ext/pixo/ext/glew/build/cmake/testbuild/CMakeLists.txt
pixo-0.2.0 ext/pixo/ext/glew/build/cmake/testbuild/CMakeLists.txt
pixo-0.1.4 ext/pixo/ext/glew/build/cmake/testbuild/CMakeLists.txt
pixo-0.1.3 ext/pixo/ext/glew/build/cmake/testbuild/CMakeLists.txt
pixo-0.1.2 ext/pixo/ext/glew/build/cmake/testbuild/CMakeLists.txt
pixo-0.1.1 ext/pixo/ext/glew/build/cmake/testbuild/CMakeLists.txt