Set the default installation paths in main CMakeLists.txt. On Tizen these
settings will be overridden by variables passed to cmake by rpmbuild.
But having them defined makes the standalone build possible, outside of
Tizen.
Change-Id: Idf84ff5a5e15fd99912b53e0970198d031bbbee5
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
INCLUDE(FindPkgConfig)
INCLUDE(CheckCXXCompilerFlag)
+############################# install dirs ##################################
+
+SET(LIB_INSTALL_DIR
+ "${CMAKE_INSTALL_PREFIX}/lib"
+ CACHE PATH
+ "Library installation directory")
+
+SET(BIN_INSTALL_DIR
+ "${CMAKE_INSTALL_PREFIX}/bin"
+ CACHE PATH
+ "Binary installation directory")
+
+SET(INCLUDE_INSTALL_DIR
+ "${CMAKE_INSTALL_PREFIX}/include"
+ CACHE PATH
+ "Include installation directory")
+
############################# compiler flags ##################################
SET(CMAKE_CXX_FLAGS_PROFILING "-O0 -g -pg")
${TARGET_CYNARA_COMMON}
)
-INSTALL(TARGETS ${TARGET_CYNARA} DESTINATION bin)
+INSTALL(TARGETS ${TARGET_CYNARA} DESTINATION ${BIN_INSTALL_DIR})
TARGET_LINK_LIBRARIES(${TARGET_CYNARA_TESTS}
${PKGS_LDFLAGS} ${PKGS_LIBRARIES}
)
-INSTALL(TARGETS ${TARGET_CYNARA_TESTS} DESTINATION bin)
+INSTALL(TARGETS ${TARGET_CYNARA_TESTS} DESTINATION ${BIN_INSTALL_DIR})