Commit a2263871 authored by Philip Trettner's avatar Philip Trettner
Browse files

First cmake attempt

parent 3b77e568
Pipeline #1555 skipped
cmake_minimum_required(VERSION 3.0)
project(AntTweakBar)
set(ANTTWEAKBAR_LINK_TYPE SHARED CACHE String "link type for ATB")
add_library(AntTweakBar ${ANTTWEAKBAR_LINK_TYPE}
include/AntTweakBar.h
src/TwColors.cpp
src/TwColors.h
src/TwFonts.cpp
src/TwFonts.h
src/TwOpenGL.cpp
src/TwOpenGL.h
src/TwOpenGLCore.cpp
src/TwOpenGLCore.h
src/TwBar.cpp
src/TwBar.h
src/TwMgr.cpp
src/TwMgr.h
src/TwPrecomp.cpp
src/TwPrecomp.h
src/LoadOGL.cpp
src/LoadOGL.h
src/LoadOGLCore.cpp
src/LoadOGLCore.h
src/TwEventGLFW.c
src/TwEventGLUT.c
src/TwEventSDL.c
src/TwEventSDL12.c
src/TwEventSDL13.c
src/TwEventSFML.cpp
src/TwEventX11.c
)
target_compile_options(AntTweakBar PRIVATE
-Wall
-Werror
)
target_compile_options(AntTweakBar PUBLIC
# C++11 for C++ files
$<$<COMPILE_LANGUAGE:CXX>:-std=c++11>
)
target_include_directories(AntTweakBar PUBLIC include)
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