CMakeLists.txt 333 B

1234567891011
  1. # a simple C only test case
  2. cmake_minimum_required(VERSION 3.5)
  3. project (COnly C)
  4. set(CMAKE_DEBUG_POSTFIX "_test_debug_postfix")
  5. add_library(testc1 STATIC libc1.c)
  6. add_library(testc2 SHARED libc2.c)
  7. add_executable (COnly conly.c foo.c foo.h)
  8. target_link_libraries(COnly testc1 testc2)
  9. add_library(testCModule MODULE testCModule.c)