Source

wiesel / samples / HelloWiesel / CMakeLists.txt

# makefile for the current project

# ensure a correct version of cmake is installed
cmake_minimum_required(VERSION 2.8)

# compatibility
set(CMAKE_LEGACY_CYGWIN_WIN32 0) # Remove when CMake >= 2.8.4 is required


# set the project name
project(HelloWiesel)


# in this case, the engine folder is in the same repository,
# so we always know the correct location.
# when the engine location is different on various build environments,
# you may put the definition of WIESEL_DIR into a separate file under 
# config/local, where it is not committed into version control.
set(WIESEL_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../..)

# include the main build file of the engine
include(${WIESEL_DIR}/build/build.cmake)



wiesel_create_executable(HelloWiesel ./src)


# add required libraries
wiesel_module_add_dependency(HelloWiesel wiesel-base)
wiesel_module_add_dependency(HelloWiesel wiesel-core)
wiesel_module_add_dependency(HelloWiesel wiesel-common)
wiesel_module_add_dependency(HelloWiesel wiesel-sdl)

wiesel_target_add_compileflags(HelloWiesel "-DWIESEL_USE_LIBSDL")
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.