CMake/Tests/NewlineArgs/CMakeLists.txt

17 lines
438 B
CMake
Raw Normal View History

# a simple CXX only test case
2008-03-25 18:27:18 +03:00
cmake_minimum_required (VERSION 2.6)
2007-05-11 18:22:20 +04:00
project (NewlineArgs CXX)
add_definitions("-DTEST_FLAG_1
-DTEST_FLAG_2")
include_directories(" ${NewlineArgs_BINARY_DIR}
2007-05-11 18:22:20 +04:00
${NewlineArgs_SOURCE_DIR} ")
configure_file("${NewlineArgs_SOURCE_DIR}/libcxx2.h.in"
2007-05-11 18:22:20 +04:00
"${NewlineArgs_BINARY_DIR}/libcxx2.h")
add_library(testcxx1 libcxx1.cxx)
2007-05-11 18:22:20 +04:00
add_executable (NewlineArgs cxxonly.cxx)
target_link_libraries(NewlineArgs testcxx1)