yaml-cpp/util/CMakeLists.txt
2016-05-12 12:51:00 -04:00

19 lines
587 B
CMake

add_sources(parse.cpp)
add_executable(parse parse.cpp)
target_link_libraries(parse yaml-cpp)
add_sources(sandbox.cpp)
add_executable(sandbox sandbox.cpp)
target_link_libraries(sandbox yaml-cpp)
add_sources(read.cpp)
add_executable(read read.cpp)
target_link_libraries(read yaml-cpp)
if(CMAKE_CXX_COMPILER_ID MATCHES "GNU" OR
CMAKE_CXX_COMPILER_ID MATCHES "Clang")
set_target_properties(parse PROPERTIES COMPILE_FLAGS "-std=c++11")
set_target_properties(sandbox PROPERTIES COMPILE_FLAGS "-std=c++11")
set_target_properties(read PROPERTIES COMPILE_FLAGS "-std=c++11")
endif()