hemplate

Simple XML template engine
git clone git://git.dimitrijedobrota.com/hemplate.git
Log | Files | Refs | README | LICENSE

CMakeLists.txt (568B)


      1 cmake_minimum_required(VERSION 3.14)
      2 
      3 project(hemplateTests LANGUAGES CXX)
      4 
      5 include(../cmake/project-is-top-level.cmake)
      6 include(../cmake/folders.cmake)
      7 
      8 # ---- Dependencies ----
      9 
     10 if(PROJECT_IS_TOP_LEVEL)
     11   find_package(hemplate REQUIRED)
     12   enable_testing()
     13 endif()
     14 
     15 # ---- Tests ----
     16 
     17 add_executable(hemplate_test source/hemplate_test.cpp)
     18 target_link_libraries(hemplate_test PRIVATE hemplate::hemplate)
     19 target_compile_features(hemplate_test PRIVATE cxx_std_20)
     20 
     21 add_test(NAME hemplate_test COMMAND hemplate_test)
     22 
     23 # ---- End-of-file commands ----
     24 
     25 add_folders(Test)