|
|
@ -15,12 +15,17 @@ endif(CMAKE_CONFIGURATION_TYPES)
|
|
|
|
# Check for MFC!
|
|
|
|
# Check for MFC!
|
|
|
|
find_package(MFC QUIET)
|
|
|
|
find_package(MFC QUIET)
|
|
|
|
if(MFC_FOUND OR (NOT MSVC))
|
|
|
|
if(MFC_FOUND OR (NOT MSVC))
|
|
|
|
SET_PROPERTY(GLOBAL PROPERTY USE_FOLDERS ON)
|
|
|
|
|
|
|
|
OPTION(CMAKE_USE_FOLDERS "Enable folder grouping of projects in IDEs." ON)
|
|
|
|
OPTION(CMAKE_USE_FOLDERS "Enable folder grouping of projects in IDEs." ON)
|
|
|
|
else()
|
|
|
|
else()
|
|
|
|
OPTION(CMAKE_USE_FOLDERS "Enable folder grouping of projects in IDEs." OFF)
|
|
|
|
OPTION(CMAKE_USE_FOLDERS "Enable folder grouping of projects in IDEs." OFF)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(CMAKE_USE_FOLDERS)
|
|
|
|
|
|
|
|
SET_PROPERTY(GLOBAL PROPERTY USE_FOLDERS ON)
|
|
|
|
|
|
|
|
else()
|
|
|
|
|
|
|
|
SET_PROPERTY(GLOBAL PROPERTY USE_FOLDERS OFF)
|
|
|
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
|
|
# macro for setting up IDE folders without nasty IF()s everywhere
|
|
|
|
# macro for setting up IDE folders without nasty IF()s everywhere
|
|
|
|
MACRO(IDE_FOLDER target folder)
|
|
|
|
MACRO(IDE_FOLDER target folder)
|
|
|
|
if(CMAKE_USE_FOLDERS)
|
|
|
|
if(CMAKE_USE_FOLDERS)
|
|
|
|