# ---------------------------------------------------------------------------- # CMake file for libARICP. See root CMakeLists.txt # # ---------------------------------------------------------------------------- project(libARICP) file(GLOB_RECURSE lib_srcs ${CMAKE_CURRENT_SOURCE_DIR}/*.c) file(GLOB_RECURSE lib_hdrs ${CMAKE_CURRENT_SOURCE_DIR}/*.h) file(GLOB_RECURSE lib_hbase ${CMAKE_CURRENT_SOURCE_DIR}/../../../include/ARICP/*.h) set(lib_includes ${lib_hdrs} ${lib_hbase}) # ---------------------------------------------------------------------------------- # Define the library target: # ---------------------------------------------------------------------------------- add_library(libARICP STATIC ${lib_srcs} ${lib_includes}) if (CMAKE_COMPILER_IS_GNUCXX) # Fix x64 issues on Linux if("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "x86_64" AND NOT APPLE) add_definitions(-fPIC) endif() endif (CMAKE_COMPILER_IS_GNUCXX) include_directories(include ${CMAKE_CURRENT_SOURCE_DIR}/../../../include) # Add definitions #add_definitions(-D_DEF) # set the lib version set_target_properties(libARICP PROPERTIES OUTPUT_NAME libARICP VERSION "${ARToolKit_VERSION}" SOVERSION "${ARToolKit_VERSION_MAJOR}" ) #target_link_libraries(libARICP ${BTLIBRARIES} ${Boost_LIBRARIES}) artoolkit_config_lib(libARICP) install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/../../../include/ARICP DESTINATION include FILES_MATCHING PATTERN "*.h") install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} DESTINATION include FILES_MATCHING PATTERN "*.h")