cmake/Tests/CxxOnly/CMakeLists.txt

14 lines
386 B
CMake
Raw Normal View History

# a simple CXX only test case
project (CxxOnly CXX)
set(CMAKE_DEBUG_POSTFIX "_test_debug_postfix")
2010-11-13 01:00:53 +02:00
if(WIN32)
set(EXTRA_SRCS test.CPP)
endif()
add_library(testcxx1.my STATIC libcxx1.cxx ${EXTRA_SRCS})
add_library(testcxx2 SHARED libcxx2.cxx)
add_executable (CxxOnly cxxonly.cxx)
2010-11-13 01:00:53 +02:00
target_link_libraries(CxxOnly testcxx1.my testcxx2)
2012-04-19 19:04:21 +03:00
add_library(testCxxModule MODULE testCxxModule.cxx)