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 ################################################################################