From 25ba7c380c574a7c6eed68298bad28d55f2fb63e Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Mon, 27 Apr 2020 11:10:39 +0200 Subject: [PATCH] CMake : Move all Gsl projects into solution folder Thirdparty/GSL --- CMakeLists.txt | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 74066016ec..93c9ef5009 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -311,6 +311,14 @@ list(APPEND THIRD_PARTY_LIBRARIES clipper ) +################################################################################ +# Thirdparty libraries are put in ThirdParty solution folder +################################################################################ +set_property(TARGET + ${THIRD_PARTY_LIBRARIES} + PROPERTY FOLDER "Thirdparty" +) + ################################################################################ # GNU GSL ################################################################################ @@ -324,17 +332,17 @@ if(GSL_ENABLE) add_subdirectory(ThirdParty/gsl) add_definitions(-DUSE_GSL) list(APPEND THIRD_PARTY_LIBRARIES gsl) + + # set this property manually for all GSL projects, as they are put into a separate folder + set_property(TARGET + gsl + gslcblas + copy-headers + PROPERTY FOLDER "Thirdparty/GSL" + ) endif() -################################################################################ -# Thirdparty libraries are put in ThirdParty solution folder -################################################################################ -set_property(TARGET - ${THIRD_PARTY_LIBRARIES} - PROPERTY FOLDER "Thirdparty" -) - ################################################################################ # Vizualization Framework ################################################################################