cmake_minimum_required(VERSION 3.8) # You can tweak some common (for all subprojects) stuff here. For example: set(CMAKE_DISABLE_IN_SOURCE_BUILD ON) set(CMAKE_DISABLE_SOURCE_CHANGES ON) if ("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}") message(SEND_ERROR "In-source builds are not allowed.") endif () set(CMAKE_VERBOSE_MAKEFILE ON) set(CMAKE_COLOR_MAKEFILE ON) # Remove 'lib' prefix for shared libraries on Windows if (WIN32) set(CMAKE_SHARED_LIBRARY_PREFIX "") ADD_DEFINITIONS(/bigobj) endif () # Force 8.1 SDK, to keep it compatible with win7 if (${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Windows") set (CMAKE_SYSTEM_VERSION 8.1 CACHE TYPE INTERNAL FORCE) endif() # When done tweaking common stuff, configure the components (subprojects). # NOTE: The order matters! The most independent ones should go first. add_subdirectory(../libLicenseClient libLicenseClient) add_subdirectory(../libLicenseClient/test libLicenseClientTest) add_subdirectory(CCEngine) add_subdirectory(CCEngineLoader)