Branan Purvine-Riley
14 years ago
committed by
rarified
32 changed files with 304 additions and 91 deletions
@ -0,0 +1,26 @@
|
||||
project(CyanWorldsEngine) |
||||
cmake_minimum_required(VERSION 2.8) |
||||
|
||||
# Find all 3rd-party libraries that are required |
||||
find_package(OpenSSL REQUIRED) |
||||
find_package(OpenAL REQUIRED) |
||||
|
||||
option(EXTERNAL_RELEASE "Is this release intended for the general public?" OFF) |
||||
|
||||
# TODO: are there any other build types which are useful for us? |
||||
add_definitions(-DBUILD_TYPE_LIVE) |
||||
|
||||
if(EXTERNAL_RELEASE) |
||||
add_definitions(-DPLASMA_EXTERNAL_RELEASE) |
||||
endif(EXTERNAL_RELEASE) |
||||
|
||||
if(CMAKE_BUILD_TYPE STREQUAL Debug) |
||||
add_definitions(-D_DEBUG) |
||||
endif(CMAKE_BUILD_TYPE STREQUAL Debug) |
||||
|
||||
if(MSVC) |
||||
add_definitions(-D_CRT_SECURE_NO_WARNINGS) |
||||
endif(MSVC) |
||||
|
||||
add_subdirectory(Sources/Plasma) |
||||
# add_subdirectory(Sources/Tools) |
@ -0,0 +1,4 @@
|
||||
add_subdirectory(CoreLib) |
||||
add_subdirectory(CoreLibExe) |
||||
add_subdirectory(FeatureLib) |
||||
add_subdirectory(NucleusLib) |
@ -0,0 +1,99 @@
|
||||
add_definitions(-D_LIB) |
||||
|
||||
set(CoreLib_SOURCES |
||||
HeadSpin.cpp |
||||
hsBitVector.cpp |
||||
hsBounds.cpp |
||||
hsCritSect.cpp |
||||
hsExceptionStack.cpp |
||||
hsFastMath.cpp |
||||
hsGeometry3.cpp |
||||
hsMalloc.cpp |
||||
hsMatrix33.cpp |
||||
hsMatrix44.cpp |
||||
hsMemory.cpp |
||||
hsMMIOStream.cpp |
||||
hsQuat.cpp |
||||
hsSafeRefCnt.cpp |
||||
hsSTLStream.cpp |
||||
hsStlUtils.cpp |
||||
hsStream.cpp |
||||
hsStringTokenizer.cpp |
||||
hsTemplates.cpp |
||||
hsThread.cpp |
||||
hsUtils.cpp |
||||
hsWide.cpp |
||||
pcSmallRect.cpp |
||||
plGeneric.cpp |
||||
plLoadMask.cpp |
||||
plViewTransform.cpp |
||||
) |
||||
|
||||
if(WIN32 AND NOT CYGWIN) |
||||
set(CoreLib_SOURCES ${CoreLib_SOURCES} |
||||
hsThread_Win.cpp |
||||
) |
||||
endif(WIN32 AND NOT CYGWIN) |
||||
if(UNIX) |
||||
set(CoreLib_SOURCES ${CoreLib_SOURCES} |
||||
hsThread_Unix.cpp |
||||
) |
||||
endif(UNIX) |
||||
|
||||
# for now we use the Unix file on mac... I think this is Carbon code, which |
||||
# we don't want to use. I don't think it's worth support OS9 anymore |
||||
#if(APPLE) |
||||
# set(CoreLib_SOURCES ${CoreLib_SOURCES} |
||||
# hsThread_Mac.cpp |
||||
# ) |
||||
#endif(APPLE) |
||||
|
||||
|
||||
set(CoreLib_HEADERS |
||||
HeadSpin.h |
||||
hsBiExpander.h |
||||
hsBitVector.h |
||||
hsBounds.h |
||||
hsColorRGBA.h |
||||
hsConfig.h |
||||
hsCritSect.h |
||||
hsExceptions.h |
||||
hsFastMath.h |
||||
hsFixedTypes.h |
||||
hsGeometry3.h |
||||
hsHashTable.h |
||||
hsMalloc.h |
||||
hsMatrix44.h |
||||
hsMemory.h |
||||
hsMMIOStream.h |
||||
hsPoint2.h |
||||
hsQuat.h |
||||
hsQueue.h |
||||
hsRefCnt.h |
||||
hsSafeRefCnt.h |
||||
hsScalar.h |
||||
hsStlSortUtils.h |
||||
hsSTLStream.h |
||||
hsStream.h |
||||
hsStringTokenizer.h |
||||
hsTemplates.h |
||||
hsTempPointer.h |
||||
hsThread.h |
||||
hsTypes.h |
||||
hsUtils.h |
||||
hsWide.h |
||||
hsWindowHndl.h |
||||
hsWindows.h |
||||
pcSmallRect.h |
||||
plGeneric.h |
||||
plLoadMask.h |
||||
plQuality.h |
||||
plRefCnt.h |
||||
plTweak.h |
||||
plViewTransform.h |
||||
) |
||||
|
||||
add_library(CoreLib STATIC ${CoreLib_SOURCES} ${CoreLib_HEADERS}) |
||||
|
||||
source_group("Source Files" FILES ${CoreLib_SOURCES}) |
||||
source_group("Header Files" FILES ${CoreLib_HEADERS}) |
@ -0,0 +1,16 @@
|
||||
add_definitions(-D_LIB) |
||||
|
||||
set(CoreLibExe_SOURCES |
||||
hsExeError.cpp |
||||
hsExeMalloc.cpp |
||||
) |
||||
|
||||
set(CoreLibExe_HEADERS |
||||
Intern.h |
||||
Pch.h |
||||
) |
||||
|
||||
add_library(CoreLibExe STATIC ${CoreLibExe_SOURCES} ${CoreLibExe_HEADERS}) |
||||
|
||||
source_group("Source Files" FILES ${CoreLibExe_SOURCES}) |
||||
source_group("Header Files" FILES ${CoreLibExe_HEADERS}) |
@ -0,0 +1,2 @@
|
||||
add_subdirectory(pfAnimation) |
||||
add_subdirectory(pfAudio) |
@ -0,0 +1,41 @@
|
||||
include_directories("../../CoreLib") |
||||
include_directories("../../NucleusLib") |
||||
include_directories("../../NucleusLib/inc") |
||||
include_directories("../../PubUtilLib") |
||||
|
||||
include_directories(${OPENSSL_INCLUDE_DIR}) |
||||
|
||||
# this is in the vcproj, but it seems silly for animation... |
||||
# find_package(OpenSSL REQUIRED) |
||||
|
||||
set(pfAnimation_SOURCES |
||||
pfObjectFlocker.cpp |
||||
plAnimDebugList.cpp |
||||
plBlower.cpp |
||||
plFilterCoordInterface.cpp |
||||
plFollowMod.cpp |
||||
plLightModifier.cpp |
||||
plLineFollowMod.cpp |
||||
plRandomCommandMod.cpp |
||||
plStereizer.cpp |
||||
plViewFaceModifier.cpp |
||||
) |
||||
|
||||
set(pfAnimation_HEADERS |
||||
pfAnimationCreatable.h |
||||
pfObjectFlocker.h |
||||
plAnimDebugList.h |
||||
plBlower.h |
||||
plFilterCoordInterface.h |
||||
plFollowMod.h |
||||
plLightModifier.h |
||||
plLineFollowMod.h |
||||
plRandomCommandMod.h |
||||
plStereizer.h |
||||
plViewFaceModifier.h |
||||
) |
||||
|
||||
add_library(pfAnimation STATIC ${pfAnimation_SOURCES} ${pfAnimation_HEADERS}) |
||||
|
||||
source_group("Source Files" FILES ${pfAnimation_SOURCES}) |
||||
source_group("Header Files" FILES ${pfAnimation_HEADERS}) |
@ -0,0 +1,25 @@
|
||||
include_directories(../../CoreLib) |
||||
include_directories(../../FeatureLib) |
||||
include_directories(../../NucleusLib) |
||||
include_directories(../../NucleusLib/inc) |
||||
include_directories(../../PubUtilLib) |
||||
#include_directories(../../PubUtilLib/inc) |
||||
|
||||
include_directories(${OPENSSL_INCLUDE_DIR}) |
||||
include_directories(${OPENAL_INCLUDE_DIR}) |
||||
|
||||
set(pfAudio_SOURCES |
||||
plListener.cpp |
||||
plRandomSoundMod.cpp |
||||
) |
||||
|
||||
set(pfAudio_HEADERS |
||||
pfAudioCreatable.h |
||||
plListener.h |
||||
plRandomSoundMod.h |
||||
) |
||||
|
||||
add_library(pfAudio STATIC ${pfAudio_SOURCES} ${pfAudio_HEADERS}) |
||||
|
||||
source_group("Source Files" FILES ${pfAudio_SOURCES}) |
||||
source_group("Header Files" FILES ${pfAudio_HEADERS}) |
Loading…
Reference in new issue