2001-06-22 01:52:22 +04:00
|
|
|
# a simple test case
|
2005-07-06 23:24:31 +04:00
|
|
|
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)
|
2006-11-28 00:13:41 +03:00
|
|
|
|
|
|
|
# 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 )
|
2006-11-28 00:13:41 +03:00
|
|
|
endif(CMAKE_BUILD_TYPE MATCHES Debug)
|