This repository has been archived by the owner on Apr 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add CMake opt files (#34) Add cmake_common_target.opt and cmake_tango.opt to the distribution in order to be able to generate CMakeLists.txt files for Device Servers from Pogo. * remove -std option from cmake_tango.opt * Compile with -std=c++0x when using g++ < 6.1
- Loading branch information
Showing
4 changed files
with
84 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
|
||
# | ||
# Set library directories | ||
# | ||
link_directories(${USER_LIB_DIR} ${TANGO_LIB_HOME}) | ||
|
||
# | ||
# Compile and link | ||
# | ||
message("SERVER_NAME=${SERVER_NAME}") | ||
message("SERVER_SRC=${SERVER_SRC}") | ||
add_executable(${SERVER_NAME} ${SERVER_SRC}) | ||
target_link_libraries(${SERVER_NAME} ${USER_LIBS} ${TANGO_LIBS}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# | ||
# Set default PATH | ||
# | ||
set(EXECUTABLE_OUTPUT_PATH "${CMAKE_BINARY_DIR}/bin/") | ||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${EXECUTABLE_OUTPUT_PATH}) | ||
|
||
if(DEFINED TANGO_HOME) | ||
message("-DTANGO_HOME specified in the command line") | ||
else() | ||
set(TANGO_HOME $ENV{TANGO_HOME}) | ||
endif(DEFINED TANGO_HOME) | ||
|
||
if(DEFINED TANGO_HOME) | ||
message("TANGO_HOME = ${TANGO_HOME}") | ||
else() | ||
set(TANGO_HOME @prefix@) | ||
endif(DEFINED TANGO_HOME) | ||
|
||
set(ENV{PKG_CONFIG_PATH} "${TANGO_HOME}/lib/pkgconfig:$ENV{PKG_CONFIG_PATH}") | ||
|
||
if(DEFINED OMNI_HOME) | ||
message("-DOMNI_HOME specified in the command line") | ||
else() | ||
set(OMNI_HOME $ENV{OMNI_HOME}) | ||
endif(DEFINED OMNI_HOME) | ||
if(DEFINED OMNI_HOME) | ||
message("OMNI_HOME = ${OMNI_HOME}") | ||
set(ENV{PKG_CONFIG_PATH} "${OMNI_HOME}/lib/pkgconfig:$ENV{PKG_CONFIG_PATH}") | ||
endif(DEFINED OMNI_HOME) | ||
|
||
|
||
if(DEFINED ZMQ_HOME) | ||
message("-DZMQ_HOME specified in the command line") | ||
else() | ||
set(ZMQ_HOME $ENV{ZMQ_HOME}) | ||
endif(DEFINED ZMQ_HOME) | ||
if(DEFINED ZMQ_HOME) | ||
message("ZMQ_HOME = ${ZMQ_HOME}") | ||
set(ENV{PKG_CONFIG_PATH} "${ZMQ_HOME}/lib/pkgconfig:$ENV{PKG_CONFIG_PATH}") | ||
endif(DEFINED ZMQ_HOME) | ||
|
||
# | ||
# Compiler flags | ||
# | ||
set(CMAKE_CXX_FLAGS "${CXXFLAGS_USER} ${CMAKE_CXX_FLAGS}") | ||
|
||
find_package(PkgConfig REQUIRED) | ||
pkg_check_modules(PKG_TANGO REQUIRED tango) | ||
|
||
set(TANGO_INCLUDES ${PKG_TANGO_INCLUDE_DIRS}) | ||
set(TANGO_LIBS ${PKG_TANGO_LIBRARIES}) | ||
set(TANGO_LIB_HOME ${PKG_TANGO_LIBRARY_DIRS}) | ||
|
||
add_definitions (${PKG_TANGO_CFLAGS_OTHER}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters