initial implementation of the CMake build system

This commit is contained in:
Markus Makela
2014-09-11 18:24:41 +03:00
parent 30c52677b0
commit b3ce971020
16 changed files with 199 additions and 0 deletions

8
client/CMakeLists.txt Normal file
View File

@ -0,0 +1,8 @@
add_executable(maxadmin maxadmin.c)
find_library(HIST edit)
#if(HIST)
# add_definitions(-DHISTORY)
# set(LIBS ${LIBS} {HIST})
#endif(HIST)
set_target_properties(maxadmin PROPERTIES INSTALL_RPATH ${CMAKE_INSTALL_RPATH}:${CMAKE_INSTALL_PREFIX}/lib)
install(TARGETS maxadmin DESTINATION bin)