update the build system: only basic build works

This commit is contained in:
Johann Dreo 2012-10-06 01:08:59 +02:00
commit 8a81bd2191
32 changed files with 244 additions and 377 deletions

View file

@ -2,14 +2,30 @@
### 1) Set all needed source files for the project
######################################################################################
FILE(GLOB HDRS *.h edo)
INSTALL(FILES ${HDRS} DESTINATION include/edo COMPONENT headers)
include_directories(${EO_SRC_DIR})
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
FILE(GLOB SOURCES *.cpp)
set(EDO_LIB_OUTPUT_PATH ${EDO_BINARY_DIR}/lib)
set(LIBRARY_OUTPUT_PATH ${EDO_LIB_OUTPUT_PATH})
SET(SAMPLE_SRCS ${SOURCES} PARENT_SCOPE)
######################################################################################
### 3) Look for headers
######################################################################################
file(GLOB HDRS edo)
install(FILES ${HDRS} DESTINATION local/include${INSTALL_SUB_DIR}/edo COMPONENT headers)
######################################################################################
### 4) Install directories
######################################################################################
install(DIRECTORY utils
DESTINATION local/include${INSTALL_SUB_DIR}/moeo
COMPONENT headers
FILES_MATCHING PATTERN "*.h"
)
######################################################################################

View file

@ -1,14 +1,21 @@
######################################################################################
### 1) Set all needed source files for the project
### 1) Include the sources
######################################################################################
FILE(GLOB SOURCES *.cpp)
SET(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/lib)
ADD_LIBRARY(edoutils ${SOURCES})
INSTALL(TARGETS edoutils ARCHIVE DESTINATION lib COMPONENT libraries)
FILE(GLOB HDRS *.h utils)
INSTALL(FILES ${HDRS} DESTINATION include/edo/utils COMPONENT headers)
include_directories(${EO_SRC_DIR}/src)
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
######################################################################################
### 2) Define the target
######################################################################################
set(EDOUTILS_LIB_OUTPUT_PATH ${EO_BIN_DIR}/lib)
set(LIBRARY_OUTPUT_PATH ${EDOUTILS_LIB_OUTPUT_PATH})
file(GLOB SOURCES *.cpp)
add_library(edoutils ${SOURCES})
install(TARGETS edoutils ARCHIVE DESTINATION local/${LIB} COMPONENT libraries)
set(EDOUTILS_VERSION ${GLOBAL_VERSION})
set_target_properties(edoutils PROPERTIES VERSION "${EDOUTILS_VERSION}")