CMake/Tests/Simple/CMakeLists.txt

18 lines
389 B
CMake
Raw Normal View History

2001-06-22 01:52:22 +04:00
# a simple test case
project (Simple)
2005-06-27 20:45:55 +04:00
2007-05-11 18:22:20 +04:00
add_executable (Simple simple.cxx)
2005-06-27 20:45:55 +04:00
add_library (simpleLib STATIC
simpleLib.cxx
simpleCLib.c
simpleWe.cpp
)
2007-05-11 18:22:20 +04:00
target_link_libraries (Simple simpleLib)
# make sure optimized libs are not used by debug builds
if(CMAKE_BUILD_TYPE MATCHES Debug)
2007-05-11 18:22:20 +04:00
target_link_libraries(Simple optimized c:/not/here.lib )
endif(CMAKE_BUILD_TYPE MATCHES Debug)