2001-06-21 17:52:22 -04:00
|
|
|
# a simple test case
|
2005-07-06 15:24:31 -04:00
|
|
|
project (Simple)
|
2005-06-27 12:45:55 -04:00
|
|
|
|
2007-05-11 10:22:20 -04:00
|
|
|
add_executable (Simple simple.cxx)
|
2005-06-27 12:45:55 -04:00
|
|
|
|
|
|
|
add_library (simpleLib STATIC
|
|
|
|
simpleLib.cxx
|
|
|
|
simpleCLib.c
|
|
|
|
simpleWe.cpp
|
|
|
|
)
|
|
|
|
|
2007-05-11 10:22:20 -04:00
|
|
|
target_link_libraries (Simple simpleLib)
|
2006-11-27 16:13:41 -05:00
|
|
|
|
|
|
|
# make sure optimized libs are not used by debug builds
|
|
|
|
if(CMAKE_BUILD_TYPE MATCHES Debug)
|
2007-05-11 10:22:20 -04:00
|
|
|
target_link_libraries(Simple optimized c:/not/here.lib )
|
2006-11-27 16:13:41 -05:00
|
|
|
endif(CMAKE_BUILD_TYPE MATCHES Debug)
|