Commit 2f67fc4d authored by Pawel Sznajder's avatar Pawel Sznajder
Browse files

Pure cosmetics in CMakeLists.txt

parent a547ef27
# BASIC DEFINITIONS ========================================================================
# define minimum version of cmake
cmake_minimum_required(VERSION 2.6)
# define project name and its language
project(ElementaryUtils CXX)
# Force C++98 warnings
# define c++ standard and issue all the warning demanded by this standard
add_definitions(-std=c++98 -pedantic)
# Tell CMake to run moc when necessary:
# AUTOMOC ==================================================================================
# tell cmake to run Qt moc when necessary
set(CMAKE_AUTOMOC ON)
# As moc files are generated in the binary dir, tell CMake
# to always look for includes there:
# as moc files are generated in the binary dir, tell cmake to always look for includes there
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(LIBRARY_OUTPUT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/lib)
# Recherche de librairies
# FIND LIBRARIES ===========================================================================
# find libraries: additional modules
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
find_package(SFML COMPONENTS system REQUIRED)
# Inclusion des libraries
INCLUDE_DIRECTORIES(${SFML_INCLUDE_DIR})
# find libraries: SFML
find_package(SFML COMPONENTS system REQUIRED)
#Inclusion des en-têtes publics
# directories containing headers
include_directories(${SFML_INCLUDE_DIR})
include_directories(include)
# FINALIZE ==================================================================================
# generate list of source files
file(
GLOB_RECURSE
......@@ -33,7 +42,7 @@ file(
src/*
)
#Génération de la liste des fichiers sources
# define target library
add_library(
ElementaryUtils
......@@ -43,7 +52,7 @@ add_library(
${source_files}
)
#Configuration de l'édition de liens
# define libraries to be linked
target_link_libraries(
ElementaryUtils
......@@ -51,9 +60,9 @@ target_link_libraries(
${SFML_LIBRARIES}
)
# Installation
install (TARGETS ElementaryUtils
# install
install(TARGETS ElementaryUtils
RUNTIME DESTINATION bin/PARTONS
LIBRARY DESTINATION lib/PARTONS
ARCHIVE DESTINATION lib/static/PARTONS)
install (DIRECTORY include/ DESTINATION include/PARTONS)
install(DIRECTORY include/ DESTINATION include/PARTONS)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment