2 cmake_minimum_required(VERSION 2.8)
4 option(VOGL_ENABLE_ASSERTS "Enable assertions in all builds (including release)" FALSE)
6 include("${SRC_DIR}/build_options.cmake")
9 "${PROJECT_SOURCE_DIR}/../inc"
10 "${SRC_DIR}/chromiumlib"
17 vogl_colorized_console.cpp
18 vogl_command_line_params.cpp
27 vogl_dynamic_module.cpp
28 vogl_dynamic_string.cpp
44 vogl_miniz_zip_test.cpp
45 vogl_mipmapped_texture.cpp
49 vogl_resample_filters.cpp
52 vogl_sparse_bit_array.cpp
55 vogl_texture_file_types.cpp
56 vogl_threaded_resampler.cpp
57 vogl_threading_pthreads.cpp
98 add_compiler_flag("-fPIC")
100 if (VOGL_ENABLE_ASSERTS)
101 message("Forcing assertions to be enabled (VOGL_ENABLE_ASSERTS=TRUE)")
102 add_compiler_flag("-DVOGL_ENABLE_ASSERTIONS_IN_ALL_BUILDS=1")
104 message("Not forcing assertions to be enabled (VOGL_ENABLE_ASSERTS=FALSE)")
107 add_library(${PROJECT_NAME} ${SRC_LIST})
108 target_link_libraries(${PROJECT_NAME}
113 build_options_finalize()