Ticket #37615: CMakeLists.txt.diff

File CMakeLists.txt.diff, 463 bytes (added by jwoillez@…, 11 years ago)
  • CMakeLists.txt

     
     1cmake_minimum_required(VERSION 2.6)
     2project(sofa_c C)
     3
     4# Set a few variables:
     5set(LIBS ${LIBS} m)
     6# Extract all of the source files.
     7file(GLOB_RECURSE C_SOURCE . src/*.c)
     8
     9# Build a shared library
     10add_library(sofa_c SHARED ${C_SOURCE})
     11
     12# Now define the installation options
     13install(TARGETS sofa_c LIBRARY DESTINATION lib)