Fixed include directory name.
[libsex.git] / libsex / CMakeLists.txt
blob9c612210ae8eed9ec6896514da06145b72862b5d
1 # By default, we want to compile all .cxx files...
2 FILE(GLOB_RECURSE files "*.cxx")
3 # ...and link them into a shared library.
4 ADD_LIBRARY(${PROJECT_NAME} SHARED ${files})
6 # Above library is installed.
7 INSTALL(
8         TARGETS ${PROJECT_NAME}
9         LIBRARY DESTINATION "lib")
11 # So are the header files.
12 INSTALL(
13         DIRECTORY ./
14         DESTINATION "include/${LIBRARY_NAME}"
15         FILES_MATCHING PATTERN "*.[hi]xx")