Commit e2d36f0f authored by Shervin Nourbakhsh's avatar Shervin Nourbakhsh
Browse files

(split) Doctest header and as external project commented

parent 47e7ba3c
...@@ -5,6 +5,9 @@ if(NOT DEFINED PROJECT_NAME) ...@@ -5,6 +5,9 @@ if(NOT DEFINED PROJECT_NAME)
project(cameo VERSION 1.0.1 LANGUAGES CXX) project(cameo VERSION 1.0.1 LANGUAGES CXX)
endif() endif()
message("========================================")
message("Project ${PROJECT_NAME}, major version: ${PROJECT_VERSION_MAJOR}, version ${PROJECT_VERSION}")
include(GNUInstallDirs) include(GNUInstallDirs)
include(CMakePackageConfigHelpers) include(CMakePackageConfigHelpers)
...@@ -50,14 +53,14 @@ target_include_directories(cameo ...@@ -50,14 +53,14 @@ target_include_directories(cameo
PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include> PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
PUBLIC $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}> PUBLIC $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
) )
#target_include_directories(cameo PRIVATE ${DOCTEST_INCLUDE_DIR})
#target_compile_features(cameo PUBLIC cxx_std_11)
set_target_properties(cameo PROPERTIES set_target_properties(cameo PROPERTIES
SOVERSION ${PROJECT_VERSION_MAJOR} SOVERSION ${PROJECT_VERSION_MAJOR}
VERSION ${PROJECT_VERSION} VERSION ${PROJECT_VERSION}
) )
message(${PROJECT_VERSION_MAJOR})
message(${PROJECT_VERSION})
#--------------- #---------------
# Library version # Library version
write_basic_package_version_file(cameoConfigVersion.cmake write_basic_package_version_file(cameoConfigVersion.cmake
...@@ -119,6 +122,24 @@ export(TARGETS cameo FILE ${CMAKE_BINARY_DIR}/${PROJECT_NAME}Config.cmake) ...@@ -119,6 +122,24 @@ export(TARGETS cameo FILE ${CMAKE_BINARY_DIR}/${PROJECT_NAME}Config.cmake)
#enable_testing() #enable_testing()
#add_subdirectory(test) #add_subdirectory(test)
# include(ExternalProject)
# find_package(Git REQUIRED)
# ExternalProject_Add(
# doctest
# PREFIX ${CMAKE_BINARY_DIR}/doctest
# GIT_REPOSITORY https://github.com/onqtam/doctest.git
# TIMEOUT 10
# UPDATE_COMMAND ${GIT_EXECUTABLE} pull
# CONFIGURE_COMMAND ""
# BUILD_COMMAND ""
# INSTALL_COMMAND ""
# LOG_DOWNLOAD ON
# )
# # Expose required variable (DOCTEST_INCLUDE_DIR) to parent scope
# ExternalProject_Get_Property(doctest source_dir)
# set(DOCTEST_INCLUDE_DIR ${source_dir}/doctest CACHE INTERNAL "Path to include folder for doctest")
#include(CMakeFindDependencyMacro) #include(CMakeFindDependencyMacro)
#find_dependency( #find_dependency(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment