summaryrefslogtreecommitdiffstats
path: root/Tests/NewlineArgs/CMakeLists.txt
blob: 3e4b436f5b6de851a83f22340800abba69c2fca1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# a simple CXX only test case
cmake_minimum_required (VERSION 2.8.12)
project (NewlineArgs CXX)

add_definitions("-DTEST_FLAG_1
-DTEST_FLAG_2")

include_directories(" ${NewlineArgs_BINARY_DIR}
 ${NewlineArgs_SOURCE_DIR} ")

configure_file("${NewlineArgs_SOURCE_DIR}/libcxx2.h.in"
  "${NewlineArgs_BINARY_DIR}/libcxx2.h")

add_library(testcxx1 libcxx1.cxx)
add_executable (NewlineArgs cxxonly.cxx)
target_link_libraries(NewlineArgs testcxx1)