| | |
| | | SET(CMAKE_DISABLE_IN_SOURCE_BUILD ON) |
| | | |
| | | IF(NOT LCC_PROJECT_NAME) |
| | | message(WARNING "You should define a variable LCC_PROJECT_NAME containing the name of the software you want to add a license to." |
| | | "A mock product named DEFAULT has been added for you.") |
| | | message(STATUS "You should define a variable LCC_PROJECT_NAME containing the name of the software you want to add a license to." |
| | | "A mock project named DEFAULT has been added for you.") |
| | | set(LCC_PROJECT_NAME "DEFAULT" CACHE STRING "Project name (name of the software for which you want to issue a license)") |
| | | ENDIF(NOT LCC_PROJECT_NAME) |
| | | |
| | |
| | | cmake_policy(SET CMP0048 NEW) |
| | | #cmake_policy(SET CMP0091 NEW) |
| | | project (licensecc |
| | | VERSION 2.0.0 |
| | | DESCRIPTION "Copy protection and licensing library" |
| | | VERSION 2.1.0 |
| | | LANGUAGES CXX) |
| | | set(PROJECT_DESCRIPTION "Copy protection and licensing library") |
| | | |
| | | set(CMAKE_CXX_STANDARD 11) |
| | | set(CMAKE_CXX_STANDARD_REQUIRED ON) |
| | |
| | | message( STATUS "Project base dir : " ${LCC_PROJECTS_BASE_DIR}/${LCC_PROJECT_NAME} ) |
| | | |
| | | add_subdirectory(src) |
| | | |
| | | #boost is required only for tests |
| | | #bug in cmake win32 - can't find boost compiled with mingw |
| | | if(WIN32 AND "x${CMAKE_CXX_COMPILER_ARCHITECTURE_ID}" STREQUAL "x") |