[DEV] RM CMakelist
This commit is contained in:
parent
0a5749bd3a
commit
a0266a4ffe
@ -1,80 +0,0 @@
|
||||
cmake_minimum_required(VERSION 2.8)
|
||||
|
||||
# Declare the project
|
||||
project(esvg)
|
||||
|
||||
##
|
||||
## Include C++ X11 dependency ... (check correct flags)
|
||||
##
|
||||
include(CheckCXXCompilerFlag)
|
||||
CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11)
|
||||
if(COMPILER_SUPPORTS_CXX11)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
||||
else()
|
||||
CHECK_CXX_COMPILER_FLAG("-std=c++0x" COMPILER_SUPPORTS_CXX0X)
|
||||
if(COMPILER_SUPPORTS_CXX0X)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
|
||||
else()
|
||||
message(STATUS "The compiler ${CMAKE_CXX_COMPILER} has no C++11 support. Please use a different C++ compiler.")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
||||
# set output path:
|
||||
set(LIBRARY_OUTPUT_PATH lib/${CMAKE_BUILD_TYPE})
|
||||
|
||||
include_directories(.)
|
||||
|
||||
#Create src file list
|
||||
set(src_files
|
||||
esvg/Base.cpp
|
||||
esvg/Base.h
|
||||
esvg/Circle.cpp
|
||||
esvg/Circle.h
|
||||
esvg/debug.cpp
|
||||
esvg/debug.h
|
||||
esvg/Ellipse.cpp
|
||||
esvg/Ellipse.h
|
||||
esvg/Group.cpp
|
||||
esvg/Group.h
|
||||
esvg/Line.cpp
|
||||
esvg/Line.h
|
||||
esvg/esvg.cpp
|
||||
esvg/esvg.h
|
||||
esvg/Path.cpp
|
||||
esvg/Path.h
|
||||
esvg/Polygon.cpp
|
||||
esvg/Polygon.h
|
||||
esvg/Polyline.cpp
|
||||
esvg/Polyline.h
|
||||
esvg/Rectangle.cpp
|
||||
esvg/Rectangle.h
|
||||
esvg/Renderer.cpp
|
||||
esvg/Renderer.h
|
||||
esvg/Stroking.cpp
|
||||
esvg/Stroking.h
|
||||
esvg/Text.cpp
|
||||
esvg/Text.h
|
||||
)
|
||||
|
||||
add_definitions( -DDEBUG_LEVEL=3 )
|
||||
add_definitions( -DDEBUG=1 )
|
||||
if (APPLE)
|
||||
add_definitions( -D__TARGET_OS__MacOs )
|
||||
elseif (UNIX)
|
||||
add_definitions( -D__TARGET_OS__Linux )
|
||||
elseif (WIN32)
|
||||
add_definitions( -D__TARGET_OS__Windows )
|
||||
endif ()
|
||||
|
||||
|
||||
include_directories(${etk_SOURCE_DIR})
|
||||
include_directories(${linearmath_SOURCE_DIR}/bullet/src/)
|
||||
include_directories(${agg_SOURCE_DIR})
|
||||
include_directories(${exml_SOURCE_DIR})
|
||||
|
||||
#Create a static Lib:
|
||||
add_library(esvg STATIC ${src_files} )
|
||||
target_link_libraries(esvg etk agg exml)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user