config cmake
This commit is contained in:
parent
45a9cb88e0
commit
7ebb8f405b
5 changed files with 21 additions and 40 deletions
|
|
@ -1,36 +1,9 @@
|
|||
######################################################################################
|
||||
### 1) Include useful packages
|
||||
### 1) Set all needed source files for the project
|
||||
######################################################################################
|
||||
|
||||
#FIND_PACKAGE(Boost 1.33.0 REQUIRED)
|
||||
|
||||
######################################################################################
|
||||
|
||||
|
||||
######################################################################################
|
||||
### 2) Include the sources
|
||||
######################################################################################
|
||||
|
||||
#INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})
|
||||
|
||||
######################################################################################
|
||||
|
||||
|
||||
######################################################################################
|
||||
### 3) Define your target(s)
|
||||
######################################################################################
|
||||
|
||||
SET(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/lib)
|
||||
|
||||
FILE(GLOB SOURCES *.cpp)
|
||||
|
||||
SET(SAMPLE_SRCS ${SOURCES} PARENT_SCOPE)
|
||||
|
||||
ADD_LIBRARY(${PROJECT_NAME} STATIC ${SAMPLE_SRCS})
|
||||
|
||||
# INSTALL(
|
||||
# TARGETS ${LIBRARY_OUTPUT_PATH}/lib${PROJECT_NAME}.a
|
||||
# DESTINATION lib
|
||||
# COMPONENT libraries
|
||||
# )
|
||||
|
||||
######################################################################################
|
||||
|
|
|
|||
Reference in a new issue