fixed test main being included in the library

This commit is contained in:
Anselme 2016-07-18 15:09:08 +02:00
parent 77bfe51607
commit 567651f687
2 changed files with 12 additions and 11 deletions

View File

@ -4,11 +4,12 @@ cmake_minimum_required(VERSION 2.8)
SET(VERSION_MAJOR 0) SET(VERSION_MAJOR 0)
SET(VERSION_MINOR 1) SET(VERSION_MINOR 1)
set(EXTRA_INCLUDES ${PROJECT_SOURCE_DIR}/src)
# choose source file # choose source file
file(GLOB LIB_SRC_LIST src/*.cpp src/tools/*.cpp) file(GLOB LIB_SRC_LIST src/*.cpp src/tools/*.cpp)
file(GLOB LIB_HEAD_LIST src/*.h src/tools/*.h) file(GLOB LIB_HEAD_LIST src/*.h src/tools/*.h)
list(REMOVE_ITEM LIB_SRC_LIST src/main.cpp) set(EXEC_SRC_LIST src/test/main.cpp)
set(EXEC_SRC_LIST src/main.cpp)
#set compilation option #set compilation option
set(IS_LIBRARY True) set(IS_LIBRARY True)

View File

@ -1,20 +1,20 @@
#include "engine.h" #include <engine.h>
#include <input.h> #include <input.h>
#include <scene.h> #include <scene.h>
#include <mesh.h> #include <mesh.h>
#include <deferredpipeline.h> #include <deferredpipeline.h>
#include <phongmaterial.h> #include <phongmaterial.h>
#include "resourcemanager.h" #include <resourcemanager.h>
#include "sparrowrenderer.h" #include <sparrowrenderer.h>
#include "scenetree.h" #include <scenetree.h>
#include "tools/graph.h" #include <tools/graph.h>
#include "tools/pathfinder.h" #include <tools/pathfinder.h>
#include "tools/loader.h" #include <tools/loader.h>
#include "tools/font.h" #include <tools/font.h>
#include "sparrowshell.h" #include <sparrowshell.h>
int main(){ int main(){
Engine engine; Engine engine;