Move depends, build them as libs
parent
bcbc540283
commit
2a61cec4a7
@ -0,0 +1,18 @@
|
||||
# main project file. use it from a build sub-folder, see COMPILE for details
|
||||
PROJECT (dfhack-md5)
|
||||
cmake_minimum_required(VERSION 2.6)
|
||||
|
||||
# disable warning, autosearch
|
||||
if(COMMAND cmake_policy)
|
||||
cmake_policy(SET CMP0003 NEW)
|
||||
endif(COMMAND cmake_policy)
|
||||
|
||||
if("${PROJECT_SOURCE_DIR}" STREQUAL "${PROJECT_BINARY_DIR}")
|
||||
message(SEND_ERROR "In-source builds are not allowed.")
|
||||
endif("${PROJECT_SOURCE_DIR}" STREQUAL "${PROJECT_BINARY_DIR}")
|
||||
|
||||
IF(NOT DEFINED CMAKE_BUILD_TYPE)
|
||||
SET(CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the type of build, options are: None(CMAKE_CXX_FLAGS or CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel.")
|
||||
ENDIF(NOT DEFINED CMAKE_BUILD_TYPE)
|
||||
|
||||
ADD_LIBRARY(dfhack-md5 SHARED md5.cpp md5wrapper.cpp)
|
@ -0,0 +1,18 @@
|
||||
# main project file. use it from a build sub-folder, see COMPILE for details
|
||||
PROJECT (dfhack-tixml)
|
||||
cmake_minimum_required(VERSION 2.6)
|
||||
|
||||
# disable warning, autosearch
|
||||
if(COMMAND cmake_policy)
|
||||
cmake_policy(SET CMP0003 NEW)
|
||||
endif(COMMAND cmake_policy)
|
||||
|
||||
if("${PROJECT_SOURCE_DIR}" STREQUAL "${PROJECT_BINARY_DIR}")
|
||||
message(SEND_ERROR "In-source builds are not allowed.")
|
||||
endif("${PROJECT_SOURCE_DIR}" STREQUAL "${PROJECT_BINARY_DIR}")
|
||||
|
||||
IF(NOT DEFINED CMAKE_BUILD_TYPE)
|
||||
SET(CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the type of build, options are: None(CMAKE_CXX_FLAGS or CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel.")
|
||||
ENDIF(NOT DEFINED CMAKE_BUILD_TYPE)
|
||||
|
||||
ADD_LIBRARY(tixml-static SHARED tinystr.cpp tinyxml.cpp tinyxmlerror.cpp tinyxmlparser.cpp)
|
Loading…
Reference in New Issue