Hi !
Here is the complete CMake config file for my project.
I use it on Windows and OSX.
cmake_minimum_required(VERSION 2.6)
# Projet name
project("Witch_Blast")
file(
GLOB_RECURSE
source_files
src/*
)
add_executable(
"Witch_Blast"
${source_files}
)
# Detect and add SFML
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake_modules" ${CMAKE_MODULE_PATH})
find_package(SFML 2.1 REQUIRED system window graphics audio)
target_link_libraries(Witch_Blast ${SFML_LIBRARIES})
include_directories(${SFML_INCLUDE_DIR})
I've just had feedback from a Linux user: he told me I have to add the GLEW library to CMake.
How are you dealing with GLEW in your project's Cmake files ? Should I "condition" it to OS ?
(Sorry, I'm really nor skilled with CMake
)