Add missing dependency in CMakeList.txt
This commit is contained in:
parent
e241abc9df
commit
ad216d86f6
4 changed files with 5 additions and 11 deletions
|
@ -14,5 +14,5 @@ set(VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_REV}")
|
||||||
cmake_minimum_required(VERSION 2.6)
|
cmake_minimum_required(VERSION 2.6)
|
||||||
|
|
||||||
#Add source directory
|
#Add source directory
|
||||||
add_subdirectory(src)
|
add_subdirectory(./src)
|
||||||
|
|
||||||
|
|
|
@ -12,6 +12,6 @@ set_property(GLOBAL PROPERTY SFML_INCLUDE_DIR "${SFML_INCLUDE_DIR}")
|
||||||
|
|
||||||
#Include "Includes" and "Libraries"
|
#Include "Includes" and "Libraries"
|
||||||
include_directories(${SFML_INCLUDE_DIR})
|
include_directories(${SFML_INCLUDE_DIR})
|
||||||
target_link_libraries(2P11 ${SFML_LIBRARIES})
|
target_link_libraries(2P11 ${SFML_LIBRARIES} Model)
|
||||||
|
|
||||||
add_subdirectory(./Model)
|
add_subdirectory(./Model)
|
||||||
|
|
|
@ -1,8 +1,2 @@
|
||||||
#Retrieve crypto++ libraries
|
#Make Model lib
|
||||||
get_property(SFML_LIBRARIES GLOBAL PROPERTY SFML_LIBRARIES)
|
add_library(Model Grid.cpp Cell.cpp Game.cpp)
|
||||||
|
|
||||||
#Make CryptClass lib
|
|
||||||
add_library(Model ./Cell.cpp ./Game.cpp ./Grid.cpp)
|
|
||||||
|
|
||||||
#Add crypto++ to CryptClass
|
|
||||||
target_link_libraries(Model ${SFML_LIBRARIES})
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#include "Model/Grid.hpp"
|
#include "./Model/Grid.hpp"
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue