Added option for what folder to use for targets

This commit is contained in:
Unknown 2018-05-19 11:33:35 +02:00
parent fdfb5ab466
commit 7fc1d25430
4 changed files with 7 additions and 4 deletions

View File

@ -17,6 +17,9 @@ set(GLFW_VERSION_FULL "${GLFW_VERSION}.${GLFW_VERSION_PATCH}${GLFW_VERSION_EXTRA
set(LIB_SUFFIX "" CACHE STRING "Takes an empty string or 64. Directory where lib will be installed: lib or lib64")
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
if (NOT DEFINED GLFW_TARGETS_FOLDER)
set(GLFW_TARGETS_FOLDER "GLFW3")
endif()
option(BUILD_SHARED_LIBS "Build shared libraries" OFF)
option(GLFW_BUILD_EXAMPLES "Build the GLFW example programs" ON)
@ -396,7 +399,7 @@ if (GLFW_INSTALL)
add_custom_target(uninstall
"${CMAKE_COMMAND}" -P
"${GLFW_BINARY_DIR}/cmake_uninstall.cmake")
set_target_properties(uninstall PROPERTIES FOLDER "GLFW3")
set_target_properties(uninstall PROPERTIES FOLDER "${GLFW_TARGETS_FOLDER}")
endif()
endif()

View File

@ -49,7 +49,7 @@ set(WINDOWS_BINARIES boing gears heightmap particles sharing simple splitview wa
set(CONSOLE_BINARIES offscreen)
set_target_properties(${WINDOWS_BINARIES} ${CONSOLE_BINARIES} PROPERTIES
FOLDER "GLFW3/Examples")
FOLDER "${GLFW_TARGETS_FOLDER}/Examples")
if (MSVC)
# Tell MSVC to use main instead of WinMain for Windows subsystem executables

View File

@ -98,7 +98,7 @@ set_target_properties(glfw PROPERTIES
VERSION ${GLFW_VERSION}
SOVERSION ${GLFW_VERSION_MAJOR}
POSITION_INDEPENDENT_CODE ON
FOLDER "GLFW3")
FOLDER "${GLFW_TARGETS_FOLDER}")
target_compile_definitions(glfw PRIVATE _GLFW_USE_CONFIG_H)
target_include_directories(glfw PUBLIC

View File

@ -63,7 +63,7 @@ if (VULKAN_FOUND)
endif()
set_target_properties(${WINDOWS_BINARIES} ${CONSOLE_BINARIES} PROPERTIES
FOLDER "GLFW3/Tests")
FOLDER "${GLFW_TARGETS_FOLDER}/Tests")
if (MSVC)
# Tell MSVC to use main instead of WinMain for Windows subsystem executables