(committing very old stuff) Adds cmake support
This commit is contained in:
parent
744844d5ef
commit
56aa19593f
2 changed files with 22 additions and 0 deletions
19
CMakeLists.txt
Normal file
19
CMakeLists.txt
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
cmake_minimum_required(VERSION 2.8)
|
||||||
|
|
||||||
|
set(LIBNAME ImageStreams)
|
||||||
|
|
||||||
|
file(GLOB sources "*.cpp")
|
||||||
|
file(GLOB headers "include/*.hpp")
|
||||||
|
|
||||||
|
add_library(${LIBNAME} ${headers} ${sources})
|
||||||
|
|
||||||
|
find_library(LIBPNG png)
|
||||||
|
|
||||||
|
set(libs ${LIBPNG})
|
||||||
|
set(${LIBNAME}_LIBRARIES ${LIBNAME} ${libs} CACHE INTERNAL "")
|
||||||
|
|
||||||
|
target_link_libraries(${LIBNAME} ${libs})
|
||||||
|
target_include_directories(${LIBNAME} PUBLIC "include/")
|
||||||
|
|
||||||
|
install(TARGETS ${LIBNAME} DESTINATION lib)
|
||||||
|
install(FILES ${headers} DESTINATION include/ImageStreams)
|
3
dummy.cpp
Normal file
3
dummy.cpp
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
// To fool cmake it's a c++ project
|
||||||
|
static int x = x;
|
||||||
|
|
Reference in a new issue