|
|
@@ -1,5 +1,8 @@ |
|
|
|
# Project setup
|
|
|
|
PROJECT(xml)
|
|
|
|
SET(VERSION_MAJOR "0")
|
|
|
|
SET(VERSION_MINOR "1")
|
|
|
|
SET(VERSION_PATCH "0")
|
|
|
|
CMAKE_MINIMUM_REQUIRED(VERSION 2.6.0 FATAL_ERROR)
|
|
|
|
|
|
|
|
|
|
|
@@ -7,13 +10,6 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.6.0 FATAL_ERROR) |
|
|
|
SET(CMAKE_C_FLAGS_DEBUG "-DDEBUG")
|
|
|
|
SET(CMAKE_C_FLAGS_RELEASE "-O2")
|
|
|
|
|
|
|
|
#IF (${CMAKE_BUILD_TYPE} strequal "Debug")
|
|
|
|
# ADD_DEFINITIONS(-DDEBUG)
|
|
|
|
#
|
|
|
|
#ELSE (DEFINED ${DEBUG_BUILD})
|
|
|
|
# SET(CMAKE_BUILD_TYPE ${CMAKE_C_FLAGS_RELEASE})
|
|
|
|
#ENDIF (DEFINED ${DEBUG_BUILD})
|
|
|
|
|
|
|
|
|
|
|
|
# Sources
|
|
|
|
SET(SOURCE_DIRECTORY src)
|
|
|
@@ -41,8 +37,3 @@ ADD_EXECUTABLE(example |
|
|
|
)
|
|
|
|
TARGET_LINK_LIBRARIES(example xml)
|
|
|
|
|
|
|
|
|
|
|
|
# Deploy
|
|
|
|
#INSTALL(TARGETS xml DESTINATION lib)
|
|
|
|
#INSTALL(FILES DESTINATION)
|
|
|
|
|