Home | History | Annotate | Download | only in nc
      1 ## gflags negative compilation tests
      2 
      3 cmake_minimum_required (VERSION 2.8.12 FATAL_ERROR)
      4 
      5 if (NOT TEST_NAME)
      6   message (FATAL_ERROR "Missing TEST_NAME CMake flag")
      7 endif ()
      8 string (TOUPPER ${TEST_NAME} TEST_NAME_UPPER)
      9 
     10 project (gflags_${TEST_NAME})
     11 
     12 find_package (gflags REQUIRED)
     13 include_directories ("${CMAKE_CURRENT_SOURCE_DIR}/..")
     14 add_definitions (-DTEST_${TEST_NAME_UPPER})
     15 add_executable (gflags_${TEST_NAME} gflags_nc.cc)
     16 target_link_libraries(gflags_${TEST_NAME} gflags)
     17