mirror of
https://github.com/TartanLlama/optional.git
synced 2025-08-02 19:34:26 +02:00
Fix CMake
This commit is contained in:
@@ -24,8 +24,8 @@ set(TEST_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/tests/main.cpp
|
|||||||
add_executable(tests ${TEST_SOURCES})
|
add_executable(tests ${TEST_SOURCES})
|
||||||
|
|
||||||
add_library(optional INTERFACE)
|
add_library(optional INTERFACE)
|
||||||
target_sources(optional INTERFACE ${CMAKE_SOURCE_DIR}/optional.hpp)
|
target_sources(optional INTERFACE ${CMAKE_SOURCE_DIR}/tl/optional.hpp)
|
||||||
target_include_directories(optional INTERFACE ${CMAKE_SOURCE_DIR})
|
target_include_directories(optional INTERFACE ${CMAKE_SOURCE_DIR}/tl)
|
||||||
|
|
||||||
target_link_libraries(tests Catch optional)
|
target_link_libraries(tests Catch optional)
|
||||||
set_property(TARGET tests PROPERTY CXX_STANDARD 14)
|
set_property(TARGET tests PROPERTY CXX_STANDARD 14)
|
||||||
@@ -36,7 +36,7 @@ find_package(standardese) # find standardese after installation
|
|||||||
# generates a custom target that will run standardese to generate the documentation
|
# generates a custom target that will run standardese to generate the documentation
|
||||||
if (standardese_FOUND)
|
if (standardese_FOUND)
|
||||||
standardese_generate(optional
|
standardese_generate(optional
|
||||||
INCLUDE_DIRECTORY .
|
INCLUDE_DIRECTORY tl
|
||||||
CONFIG ${CMAKE_SOURCE_DIR}/standardese.config
|
CONFIG ${CMAKE_SOURCE_DIR}/standardese.config
|
||||||
INPUT optional.hpp)
|
INPUT tl/optional.hpp)
|
||||||
endif ()
|
endif ()
|
||||||
|
Reference in New Issue
Block a user