2006-07-21 19:43:26 +04:00
|
|
|
# a simple CXX only test case
|
2007-05-11 18:22:20 +04:00
|
|
|
project (CxxOnly CXX)
|
2006-07-21 19:43:26 +04:00
|
|
|
|
|
|
|
set(CMAKE_DEBUG_POSTFIX "_test_debug_postfix")
|
2010-09-07 17:14:57 +04:00
|
|
|
if(WIN32)
|
2010-09-06 20:43:57 +04:00
|
|
|
set(EXTRA_SRCS test.CPP)
|
|
|
|
endif()
|
2010-09-14 23:05:09 +04:00
|
|
|
add_library(testcxx1.my STATIC libcxx1.cxx ${EXTRA_SRCS})
|
2006-07-21 19:43:26 +04:00
|
|
|
add_library(testcxx2 SHARED libcxx2.cxx)
|
2007-05-11 18:22:20 +04:00
|
|
|
add_executable (CxxOnly cxxonly.cxx)
|
2010-09-06 20:06:43 +04:00
|
|
|
target_link_libraries(CxxOnly testcxx1.my testcxx2)
|
2012-02-03 19:36:26 +04:00
|
|
|
|
|
|
|
add_library(testCxxModule MODULE testCxxModule.cxx)
|