2023-05-12 14:41:34 -05:00
|
|
|
cmake_minimum_required(VERSION 3.15)
|
2015-11-26 03:06:48 -06:00
|
|
|
|
2020-05-06 14:16:03 -05:00
|
|
|
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()
|
2015-11-26 03:06:48 -06:00
|
|
|
|
2023-05-12 14:41:34 -05:00
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
|
|
|
2020-05-06 14:16:03 -05:00
|
|
|
project (TestCafAndVizFwk)
|
2019-05-31 03:22:30 -05:00
|
|
|
|
2020-05-06 14:16:03 -05:00
|
|
|
find_package(Qt5 COMPONENTS REQUIRED Core Gui OpenGL Widgets)
|
|
|
|
set(QT_LIBRARIES Qt5::Core Qt5::Gui Qt5::OpenGL Qt5::Widgets)
|
2015-11-26 03:06:48 -06:00
|
|
|
|
|
|
|
# Libraries
|
|
|
|
add_subdirectory(AppFwk/cafProjectDataModel/cafPdmCore)
|
|
|
|
add_subdirectory(AppFwk/cafProjectDataModel/cafPdmUiCore)
|
|
|
|
add_subdirectory(AppFwk/cafProjectDataModel/cafPdmXml)
|
|
|
|
add_subdirectory(AppFwk/cafProjectDataModel)
|
|
|
|
add_subdirectory(AppFwk/cafCommand)
|
2020-05-06 14:16:03 -05:00
|
|
|
add_subdirectory(AppFwk/cafCommandFeatures)
|
2015-11-26 03:06:48 -06:00
|
|
|
add_subdirectory(AppFwk/cafUserInterface)
|
2020-03-03 03:43:07 -06:00
|
|
|
add_subdirectory(AppFwk/cafPdmScripting)
|
2015-11-26 03:06:48 -06:00
|
|
|
|
|
|
|
# Unit Tests
|
2015-11-26 03:12:36 -06:00
|
|
|
add_subdirectory(AppFwk/cafProjectDataModel/cafProjectDataModel_UnitTests)
|
2015-11-26 03:06:48 -06:00
|
|
|
add_subdirectory(AppFwk/cafProjectDataModel/cafPdmCore/cafPdmCore_UnitTests)
|
|
|
|
add_subdirectory(AppFwk/cafProjectDataModel/cafPdmXml/cafPdmXml_UnitTests)
|
2023-05-12 14:41:34 -05:00
|
|
|
add_subdirectory(AppFwk/cafPdmScripting/cafPdmScripting_UnitTests)
|
|
|
|
add_subdirectory(AppFwk/cafUserInterface/cafUserInterface_UnitTests)
|
2015-11-26 03:06:48 -06:00
|
|
|
|
|
|
|
# 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")
|
2023-05-12 14:41:34 -05:00
|
|
|
set_property(TARGET cafPdmCore_UnitTests cafPdmXml_UnitTests cafProjectDataModel_UnitTests cafPdmScripting_UnitTests cafUserInterface_UnitTests PROPERTY FOLDER "UnitTests")
|
2015-11-26 03:06:48 -06:00
|
|
|
|
|
|
|
option (USE_CEE_VIZ "Enable visualization projects" ON)
|
|
|
|
if (USE_CEE_VIZ)
|
|
|
|
add_subdirectory(VizFwk/LibCore)
|
|
|
|
add_subdirectory(AppFwk/cafPdmCvf)
|
|
|
|
|
2015-11-26 05:19:29 -06:00
|
|
|
add_subdirectory(AppFwk/cafPdmCvf/cafPdmCvf_UnitTests)
|
|
|
|
|
2015-11-26 03:06:48 -06:00
|
|
|
add_subdirectory(AppFwk/cafTests/cafTestCvfApplication)
|
|
|
|
|
2015-11-26 05:19:29 -06:00
|
|
|
set_property(TARGET LibCore cafPdmCvf cafPdmCvf_UnitTests cafTestCvfApplication PROPERTY FOLDER "CeeViz")
|
2015-11-26 03:06:48 -06:00
|
|
|
endif()
|