You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

32 lines
1.1 KiB

  1. # Initialize CMake ################################################################################
  2. CMake_Minimum_Required ( VERSION 3.12.0 FATAL_ERROR )
  3. Project ( TestProject )
  4. # CMAKE_BUILD_TYPE
  5. If ( NOT CMAKE_BUILD_TYPE )
  6. Set ( CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the type of build!" FORCE )
  7. EndIf ( )
  8. Set_Property ( CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS Debug Release RelWithDebInfo MinSizeRel )
  9. # CMAKE_MODULE_PATH
  10. If ( EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/cmake/" )
  11. Set ( CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake/" )
  12. EndIf ( )
  13. If ( EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules/cmake" )
  14. Set ( CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules/cmake" )
  15. EndIf ( )
  16. # Includes
  17. Include ( CTest )
  18. Include ( GNUInstallDirs )
  19. # Projects ########################################################################################
  20. Message ( FATAL_ERROR "Please configure the subprojects of this project group!" )
  21. Find_Package ( helloworld REQUIRED )
  22. Find_Package ( libhelloworld REQUIRED )
  23. Find_Package ( libinterface REQUIRED )