2007-03-06 22:52:39 +03:00
|
|
|
# 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)
|
2007-03-06 22:52:39 +03:00
|
|
|
|
|
|
|
add_definitions("-DTEST_FLAG_1
|
|
|
|
-DTEST_FLAG_2")
|
|
|
|
|
2012-08-13 21:42:58 +04:00
|
|
|
include_directories(" ${NewlineArgs_BINARY_DIR}
|
2007-05-11 18:22:20 +04:00
|
|
|
${NewlineArgs_SOURCE_DIR} ")
|
2007-03-06 22:52:39 +03:00
|
|
|
|
2012-08-13 21:42:58 +04:00
|
|
|
configure_file("${NewlineArgs_SOURCE_DIR}/libcxx2.h.in"
|
2007-05-11 18:22:20 +04:00
|
|
|
"${NewlineArgs_BINARY_DIR}/libcxx2.h")
|
2007-03-06 22:52:39 +03:00
|
|
|
|
|
|
|
add_library(testcxx1 libcxx1.cxx)
|
2007-05-11 18:22:20 +04:00
|
|
|
add_executable (NewlineArgs cxxonly.cxx)
|
|
|
|
target_link_libraries(NewlineArgs testcxx1)
|