Ticket #37615: CMakeLists.txt.diff
File CMakeLists.txt.diff, 463 bytes (added by jwoillez@…, 12 years ago) |
---|
-
CMakeLists.txt
1 cmake_minimum_required(VERSION 2.6) 2 project(sofa_c C) 3 4 # Set a few variables: 5 set(LIBS ${LIBS} m) 6 # Extract all of the source files. 7 file(GLOB_RECURSE C_SOURCE . src/*.c) 8 9 # Build a shared library 10 add_library(sofa_c SHARED ${C_SOURCE}) 11 12 # Now define the installation options 13 install(TARGETS sofa_c LIBRARY DESTINATION lib)