2002-04-02 15:43:23 -05:00
|
|
|
# a simple C only test case
|
2007-05-11 10:22:20 -04:00
|
|
|
project (COnly C)
|
2003-10-31 16:55:49 -05:00
|
|
|
|
2005-06-20 11:49:29 -04:00
|
|
|
set(CMAKE_DEBUG_POSTFIX "_test_debug_postfix")
|
|
|
|
add_library(testc1 STATIC libc1.c)
|
|
|
|
add_library(testc2 SHARED libc2.c)
|
2007-05-11 10:22:20 -04:00
|
|
|
add_executable (COnly conly.c foo.c foo.h)
|
|
|
|
target_link_libraries(COnly testc1 testc2)
|
2003-01-01 17:35:42 -05:00
|
|
|
|
2005-06-20 11:49:29 -04:00
|
|
|
string(ASCII 35 32 67 77 97 107 101 ASCII_STRING)
|
|
|
|
message(STATUS "String: ${ASCII_STRING}")
|