From f56c9fdf7d9d186554d13a9f7f5b7d906ed127c1 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Tue, 4 Mar 2014 21:18:41 +0100 Subject: [PATCH] [DEV] cmake file update --- CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index ba05a2e..29880ab 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -29,6 +29,15 @@ set(src_files add_definitions( -DDEBUG_LEVEL=3 ) add_definitions( -DDEBUG=1 ) +if (UNIX) + add_definitions( -D__TARGET_OS__Linux ) +endif(UNIX) +if (APPLE) + add_definitions( -D__TARGET_OS__MacOs ) +endif (APPLE) +if (WIN32) + add_definitions( -D__TARGET_OS__Windows ) +endif (WIN32) #Create a static Lib: add_library(png STATIC ${src_files} )