ResInsight/Fwk/CMakeLists.txt

57 lines
2.1 KiB
CMake
Raw Normal View History

cmake_minimum_required(VERSION 3.15)
find_program(buildcache_program buildcache)
if(buildcache_program)
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${buildcache_program}")
message( STATUS "Found buildcache from : ${buildcache_program}" )
else()
message( STATUS "No buildcache found" )
endif()
set(CMAKE_CXX_STANDARD 17)
project (TestCafAndVizFwk)
2019-05-31 03:22:30 -05:00
find_package(Qt5 COMPONENTS REQUIRED Core Gui OpenGL Widgets)
set(QT_LIBRARIES Qt5::Core Qt5::Gui Qt5::OpenGL Qt5::Widgets)
# Libraries
add_subdirectory(AppFwk/cafProjectDataModel/cafPdmCore)
add_subdirectory(AppFwk/cafProjectDataModel/cafPdmUiCore)
add_subdirectory(AppFwk/cafProjectDataModel/cafPdmXml)
add_subdirectory(AppFwk/cafProjectDataModel)
add_subdirectory(AppFwk/cafCommand)
add_subdirectory(AppFwk/cafCommandFeatures)
add_subdirectory(AppFwk/cafUserInterface)
2020-03-03 03:43:07 -06:00
add_subdirectory(AppFwk/cafPdmScripting)
# Unit Tests
2015-11-26 03:12:36 -06:00
add_subdirectory(AppFwk/cafProjectDataModel/cafProjectDataModel_UnitTests)
add_subdirectory(AppFwk/cafProjectDataModel/cafPdmCore/cafPdmCore_UnitTests)
add_subdirectory(AppFwk/cafProjectDataModel/cafPdmXml/cafPdmXml_UnitTests)
add_subdirectory(AppFwk/cafPdmScripting/cafPdmScripting_UnitTests)
add_subdirectory(AppFwk/cafUserInterface/cafUserInterface_UnitTests)
# Executables
add_subdirectory(AppFwk/cafTests/cafTestApplication)
# Organize sub-projects into folders on Visual Studio
# Turn on using solution folders
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
set_property(TARGET cafPdmCore cafPdmUiCore cafPdmXml cafProjectDataModel PROPERTY FOLDER "ProjectDataModel")
set_property(TARGET cafPdmCore_UnitTests cafPdmXml_UnitTests cafProjectDataModel_UnitTests cafPdmScripting_UnitTests cafUserInterface_UnitTests PROPERTY FOLDER "UnitTests")
option (USE_CEE_VIZ "Enable visualization projects" ON)
if (USE_CEE_VIZ)
add_subdirectory(VizFwk/LibCore)
add_subdirectory(AppFwk/cafPdmCvf)
add_subdirectory(AppFwk/cafPdmCvf/cafPdmCvf_UnitTests)
add_subdirectory(AppFwk/cafTests/cafTestCvfApplication)
set_property(TARGET LibCore cafPdmCvf cafPdmCvf_UnitTests cafTestCvfApplication PROPERTY FOLDER "CeeViz")
endif()