doctest

FORK: The fastest feature-rich C++11/14/17/20 single-header testing framework
git clone https://git.neptards.moe/neptards/doctest.git
Log | Files | Refs | README

CMakeLists.txt (444B)


      1 cmake_minimum_required(VERSION 3.0)
      2 
      3 project(example_dll VERSION 0.0.1 LANGUAGES CXX)
      4 
      5 find_package(doctest REQUIRED)
      6 
      7 add_library("dll" SHARED dll.cpp)
      8 target_compile_features("dll" PRIVATE cxx_std_17)
      9 target_compile_definitions("dll" PUBLIC -D_EXPORT)
     10 target_link_libraries("dll" doctest::doctest)
     11 
     12 add_executable(${PROJECT_NAME} main.cpp)
     13 target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_17)
     14 target_link_libraries(${PROJECT_NAME} dll)