From b54d117c86e9876317fc2438a404992795d5c5b5 Mon Sep 17 00:00:00 2001 From: Matteo Paonessa Date: Sat, 25 Feb 2017 10:17:33 +0100 Subject: [PATCH 1/7] Initial support --- CMakeLists.txt | 12 ++++++++++++ caesium/CMakeLists.txt | 8 ++++---- caesium/caesium.c | 13 +++++++++++-- caesium/caesium.h | 11 +++++++++-- caesium/config.h.in | 3 +++ caesium/tiff.c | 15 +++++++++++++++ caesium/tiff.h | 11 +++++++++++ caesium/utils.c | 13 ++++++++----- demo/main.c | 12 ++++++++++-- install.sh | 2 +- 10 files changed, 84 insertions(+), 16 deletions(-) create mode 100644 caesium/config.h.in create mode 100644 caesium/tiff.c create mode 100644 caesium/tiff.h diff --git a/CMakeLists.txt b/CMakeLists.txt index e275044..2aced72 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,6 +5,18 @@ project(libcaesium) set(CMAKE_MACOSX_RPATH 1) set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) +# The version number. +set(VERSION_MAJOR 0) +set(VERSION_MINOR 2) +set(VERSION_PATCH 0) + +configure_file( + "caesium/config.h.in" + "${PROJECT_BINARY_DIR}/config.h" +) + +include_directories("${PROJECT_BINARY_DIR}") + set(MOZJPEG_INCLUDE /opt/mozjpeg/include) set(MOZJPEG_LIB32 /opt/mozjpeg/lib) set(MOZJPEG_LIB64 /opt/mozjpeg/lib64) diff --git a/caesium/CMakeLists.txt b/caesium/CMakeLists.txt index c91566d..93fe8e2 100644 --- a/caesium/CMakeLists.txt +++ b/caesium/CMakeLists.txt @@ -1,15 +1,15 @@ set(CMAKE_C_FLAGS "--std=gnu99 -fPIC ${CMAKE_C_FLAGS}") find_library(zoflipng zopflipng /usr/local/lib) -find_library(jpeg jpeg /opt/mozjpeg/lib) +find_library(jpeg /opt/mozjpeg/lib) find_library(turbojpeg turbojpeg /opt/mozjpeg/lib) -add_library(caesium SHARED caesium.c error.c utils.c png.c lodepng.c jpeg.c) -add_library(caesium_static STATIC caesium.c error.c utils.c png.c lodepng.c jpeg.c) +add_library(caesium SHARED caesium.c error.c utils.c png.c lodepng.c jpeg.c tiff.c) +add_library(caesium_static STATIC caesium.c error.c utils.c png.c lodepng.c jpeg.c tiff.c) set_target_properties(caesium_static PROPERTIES OUTPUT_NAME caesium) -target_link_libraries(caesium zopflipng jpeg turbojpeg) +target_link_libraries(caesium zopflipng jpeg turbojpeg tiff) # Make sure the compiler can find include files for our Caesium library # when other libraries or executables link to Caesium diff --git a/caesium/caesium.c b/caesium/caesium.c index e8d0c1b..8b69b58 100644 --- a/caesium/caesium.c +++ b/caesium/caesium.c @@ -5,6 +5,7 @@ #include "utils.h" #include "png.h" #include "jpeg.h" +#include "tiff.h" bool cs_compress(const char *input_path, const char *output_path, cs_image_pars *options) { @@ -23,7 +24,7 @@ bool cs_compress(const char *input_path, const char *output_path, cs_image_pars if (type == UNKN) { display_error(WARNING, 103); - } else if (type == JPEG) { + } else if (type == CS_JPEG) { if (options->jpeg.quality != 0) { cs_jpeg_compress(output_path, cs_jpeg_decompress(input_path, &options->jpeg), &options->jpeg); //The output is now the new input for optimization @@ -31,8 +32,10 @@ bool cs_compress(const char *input_path, const char *output_path, cs_image_pars } else { result = cs_jpeg_optimize(input_path, output_path, options->jpeg.exif_copy, input_path); } - } else if (type == PNG) { + } else if (type == CS_PNG) { result = cs_png_optimize(input_path, output_path, &options->png); + } else if (type == CS_TIFF) { + result = cs_tiff_optimize(input_path, output_path, &options->tiff); } return result; @@ -55,12 +58,18 @@ void initialize_png_parameters(cs_image_pars *par) par->png.auto_filter_strategy = 1; } +void initialize_tiff_parameters(cs_image_pars *par) +{ + par->tiff.compression = 0; +} + cs_image_pars initialize_parameters() { cs_image_pars options; initialize_jpeg_parameters(&options); initialize_png_parameters(&options); + initialize_tiff_parameters(&options); return options; } \ No newline at end of file diff --git a/caesium/caesium.h b/caesium/caesium.h index 04c16a1..b4c2860 100644 --- a/caesium/caesium.h +++ b/caesium/caesium.h @@ -32,16 +32,23 @@ typedef struct cs_png_pars int auto_filter_strategy; } cs_png_pars; +typedef struct cs_tiff_pars +{ + int compression; +} cs_tiff_pars; + typedef struct cs_image_pars { cs_jpeg_pars jpeg; cs_png_pars png; + cs_tiff_pars tiff; } cs_image_pars; typedef enum image_type { - JPEG, - PNG, + CS_JPEG, + CS_PNG, + CS_TIFF, UNKN, } image_type; diff --git a/caesium/config.h.in b/caesium/config.h.in new file mode 100644 index 0000000..30f46c8 --- /dev/null +++ b/caesium/config.h.in @@ -0,0 +1,3 @@ +#define VERSION_MAJOR @VERSION_MAJOR@ +#define VERSION_MINOR @VERSION_MINOR@ +#define VERSION_PATCH @VERSION_PATCH@ \ No newline at end of file diff --git a/caesium/tiff.c b/caesium/tiff.c new file mode 100644 index 0000000..05e3b66 --- /dev/null +++ b/caesium/tiff.c @@ -0,0 +1,15 @@ +#include "tiff.h" + + +bool cs_tiff_optimize(const char *input, const char *output, cs_tiff_pars* options) +{ + TIFF* in; + TIFF* out; + + in = TIFFOpen(input, "rb"); + + TIFFClose(in); + TIFFClose(out); + + return true; +} \ No newline at end of file diff --git a/caesium/tiff.h b/caesium/tiff.h new file mode 100644 index 0000000..761a737 --- /dev/null +++ b/caesium/tiff.h @@ -0,0 +1,11 @@ +#include + +#ifndef LIBCAESIUM_TIFF_H +#define LIBCAESIUM_TIFF_H + +#include +#include "caesium.h" + +bool cs_tiff_optimize(const char *input, const char *output, cs_tiff_pars* options); + +#endif //LIBCAESIUM_TIFF_H diff --git a/caesium/utils.c b/caesium/utils.c index 2c288cc..624b0a8 100644 --- a/caesium/utils.c +++ b/caesium/utils.c @@ -6,21 +6,24 @@ image_type detect_image_type(FILE *pFile) { - unsigned char buffer[2]; + unsigned char buffer[4]; if (pFile == NULL) { display_error(WARNING, 101); return UNKN; } - if (fread(buffer, 1, 2, pFile) < 2) { + if (fread(buffer, 1, 4, pFile) < 4) { return UNKN; } - if (buffer[0] == 0xFF && buffer[1] == 0xD8) { - return JPEG; + if (buffer[0] == 0xFF && buffer[1] == 0xFF) { + return CS_JPEG; } else if (buffer[0] == 0x89 && buffer[1] == 0x50) { - return PNG; + return CS_PNG; + } else if ((buffer[0] == 0x49 && buffer[1] == 0x49 && buffer[2] == 0x2A && buffer[3] == 0x00) + || (buffer[0] == 0x4D && buffer[1] == 0x4D && buffer[2] == 0x00 && buffer[3] == 0x2A)) { + return CS_TIFF; } return UNKN; diff --git a/demo/main.c b/demo/main.c index d52485e..1cdf325 100644 --- a/demo/main.c +++ b/demo/main.c @@ -1,14 +1,22 @@ #include +#include #include "caesium.h" +#include "config.h" int main(int argc, char *argv[]) { + fprintf(stdout, "libcaesium demo application v%d.%d.%d\n\n", + VERSION_MAJOR, + VERSION_MINOR, + VERSION_PATCH); + if (argc != 3) { fprintf(stderr, "Wrong arguments.\nExiting.\n"); - return -1; + exit(EXIT_FAILURE); } + cs_image_pars options = initialize_parameters(); cs_compress(argv[1], argv[2], &options); - return 0; + exit(EXIT_SUCCESS); } \ No newline at end of file diff --git a/install.sh b/install.sh index 8bf4b98..7826638 100644 --- a/install.sh +++ b/install.sh @@ -4,7 +4,7 @@ git clone https://github.com/mozilla/mozjpeg cd mozjpeg/ autoreconf -fiv -autoreconf -fiv +autoreconf -fiv #It's not a typo, trust me mkdir build && cd build ../configure make && sudo make install From 52e57259df427b440269736fc2f8783335878b5c Mon Sep 17 00:00:00 2001 From: Matteo Paonessa Date: Tue, 7 Mar 2017 11:33:58 +0100 Subject: [PATCH 2/7] Fixed JPEG recognition --- caesium/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/caesium/utils.c b/caesium/utils.c index 624b0a8..ab775b6 100644 --- a/caesium/utils.c +++ b/caesium/utils.c @@ -17,7 +17,7 @@ image_type detect_image_type(FILE *pFile) return UNKN; } - if (buffer[0] == 0xFF && buffer[1] == 0xFF) { + if (buffer[0] == 0xFF && buffer[1] == 0xD8) { return CS_JPEG; } else if (buffer[0] == 0x89 && buffer[1] == 0x50) { return CS_PNG; From 2077ae9ac187a0d581432f1ce36f9f5c583a38c7 Mon Sep 17 00:00:00 2001 From: Matteo Paonessa Date: Wed, 15 Mar 2017 18:10:21 +0100 Subject: [PATCH 3/7] Cleaner CMakeLists --- CMakeLists.txt | 13 ++----------- caesium/CMakeLists.txt | 4 +++- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2aced72..2376a14 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,18 +16,9 @@ configure_file( ) include_directories("${PROJECT_BINARY_DIR}") +include_directories(/opt/mozjpeg/include) -set(MOZJPEG_INCLUDE /opt/mozjpeg/include) -set(MOZJPEG_LIB32 /opt/mozjpeg/lib) -set(MOZJPEG_LIB64 /opt/mozjpeg/lib64) - -include_directories(${MOZJPEG_INCLUDE}) - -if(EXISTS ${MOZJPEG_LIB64}) - link_directories(${MOZJPEG_LIB64}) -else() - link_directories(${MOZJPEG_LIB32}) -endif() +link_directories(/opt/mozjpeg/lib) add_subdirectory(caesium) add_subdirectory(demo) diff --git a/caesium/CMakeLists.txt b/caesium/CMakeLists.txt index 93fe8e2..1ca7d97 100644 --- a/caesium/CMakeLists.txt +++ b/caesium/CMakeLists.txt @@ -1,4 +1,4 @@ -set(CMAKE_C_FLAGS "--std=gnu99 -fPIC ${CMAKE_C_FLAGS}") +set(CMAKE_C_FLAGS "--std=gnu99 -fPIC") find_library(zoflipng zopflipng /usr/local/lib) find_library(jpeg /opt/mozjpeg/lib) @@ -9,11 +9,13 @@ add_library(caesium_static STATIC caesium.c error.c utils.c png.c lodepng.c jpeg set_target_properties(caesium_static PROPERTIES OUTPUT_NAME caesium) +target_link_libraries(caesium_static zopflipng jpeg turbojpeg tiff) target_link_libraries(caesium zopflipng jpeg turbojpeg tiff) # Make sure the compiler can find include files for our Caesium library # when other libraries or executables link to Caesium target_include_directories(caesium PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) +target_include_directories(caesium_static PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) install(FILES caesium.h DESTINATION include) install(TARGETS caesium caesium_static From 83c1fc9eaf9638f6ca60aaba36868600fe61040f Mon Sep 17 00:00:00 2001 From: Matteo Paonessa Date: Wed, 15 Mar 2017 18:16:26 +0100 Subject: [PATCH 4/7] Flags back --- caesium/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/caesium/CMakeLists.txt b/caesium/CMakeLists.txt index 1ca7d97..b1df54a 100644 --- a/caesium/CMakeLists.txt +++ b/caesium/CMakeLists.txt @@ -1,4 +1,4 @@ -set(CMAKE_C_FLAGS "--std=gnu99 -fPIC") +set(CMAKE_C_FLAGS "--std=gnu99 -fPIC ${CMAKE_C_FLAGS}") find_library(zoflipng zopflipng /usr/local/lib) find_library(jpeg /opt/mozjpeg/lib) From 50a4cb15bec361a641d3cc86e0c7a46921ef1186 Mon Sep 17 00:00:00 2001 From: Matteo Paonessa Date: Fri, 17 Mar 2017 10:49:15 +0100 Subject: [PATCH 5/7] Different install paths --- .travis.yml | 2 +- CMakeLists.txt | 7 ++++++- caesium/CMakeLists.txt | 18 +++++++++++++++--- 3 files changed, 22 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 72f0216..146a914 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,7 +8,7 @@ compiler: - clang before_install: - - sudo apt-get install libtool autoconf git nasm + - sudo apt-get install libtool autoconf git nasm pkg-config cmake libtiff-dev - chmod +x install.sh - ./install.sh diff --git a/CMakeLists.txt b/CMakeLists.txt index 2376a14..01277c0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,7 +18,12 @@ configure_file( include_directories("${PROJECT_BINARY_DIR}") include_directories(/opt/mozjpeg/include) -link_directories(/opt/mozjpeg/lib) +if(EXISTS /opt/mozjpeg/lib64) + link_directories(/opt/mozjpeg/lib64) +else() + link_directories(/opt/mozjpeg/lib) +endif() + add_subdirectory(caesium) add_subdirectory(demo) diff --git a/caesium/CMakeLists.txt b/caesium/CMakeLists.txt index b1df54a..c121fc0 100644 --- a/caesium/CMakeLists.txt +++ b/caesium/CMakeLists.txt @@ -9,15 +9,27 @@ add_library(caesium_static STATIC caesium.c error.c utils.c png.c lodepng.c jpeg set_target_properties(caesium_static PROPERTIES OUTPUT_NAME caesium) -target_link_libraries(caesium_static zopflipng jpeg turbojpeg tiff) target_link_libraries(caesium zopflipng jpeg turbojpeg tiff) # Make sure the compiler can find include files for our Caesium library # when other libraries or executables link to Caesium target_include_directories(caesium PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) -target_include_directories(caesium_static PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) +# OSX installs in local +if(APPLE) + install(FILES caesium.h DESTINATION /usr/local/include) + install(TARGETS LIBRARY DESTINATION /usr/local/lib) + install(TARGETS ARCHIVE DESTINATION /usr/local/lib) +endif() + +if(UNIX AND NOT APPLE) + install(FILES caesium.h DESTINATION /usr/include) + install(TARGETS LIBRARY DESTINATION /usr/lib) + install(TARGETS ARCHIVE DESTINATION /usr/lib) +endif() + +# Fallback install(FILES caesium.h DESTINATION include) install(TARGETS caesium caesium_static LIBRARY DESTINATION lib - ARCHIVE DESTINATION lib) + ARCHIVE DESTINATION lib) \ No newline at end of file From 26c42306b2c142f5dc7b44a7291146ca1f5e3b01 Mon Sep 17 00:00:00 2001 From: Matteo Paonessa Date: Fri, 17 Mar 2017 10:55:26 +0100 Subject: [PATCH 6/7] If fix --- caesium/CMakeLists.txt | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/caesium/CMakeLists.txt b/caesium/CMakeLists.txt index c121fc0..e817f04 100644 --- a/caesium/CMakeLists.txt +++ b/caesium/CMakeLists.txt @@ -16,20 +16,17 @@ target_link_libraries(caesium zopflipng jpeg turbojpeg tiff) target_include_directories(caesium PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) # OSX installs in local -if(APPLE) +if (APPLE) install(FILES caesium.h DESTINATION /usr/local/include) install(TARGETS LIBRARY DESTINATION /usr/local/lib) install(TARGETS ARCHIVE DESTINATION /usr/local/lib) -endif() - -if(UNIX AND NOT APPLE) +elseif (UNIX AND NOT APPLE) install(FILES caesium.h DESTINATION /usr/include) install(TARGETS LIBRARY DESTINATION /usr/lib) install(TARGETS ARCHIVE DESTINATION /usr/lib) -endif() - -# Fallback -install(FILES caesium.h DESTINATION include) -install(TARGETS caesium caesium_static - LIBRARY DESTINATION lib - ARCHIVE DESTINATION lib) \ No newline at end of file +else () + install(FILES caesium.h DESTINATION include) + install(TARGETS caesium caesium_static + LIBRARY DESTINATION lib + ARCHIVE DESTINATION lib) +endif () \ No newline at end of file From 74cdf0f0e1907a91f140585a1b35422765dcf4af Mon Sep 17 00:00:00 2001 From: Matteo Paonessa Date: Sat, 18 Mar 2017 19:51:18 +0100 Subject: [PATCH 7/7] Reverting TIFF support --- CMakeLists.txt | 4 ++-- caesium/CMakeLists.txt | 6 +++--- caesium/caesium.c | 9 --------- caesium/caesium.h | 7 ------- caesium/tiff.c | 15 --------------- caesium/tiff.h | 11 ----------- caesium/utils.c | 7 ++----- demo/CMakeLists.txt | 4 +--- 8 files changed, 8 insertions(+), 55 deletions(-) delete mode 100644 caesium/tiff.c delete mode 100644 caesium/tiff.h diff --git a/CMakeLists.txt b/CMakeLists.txt index 01277c0..c312b5e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,8 +7,8 @@ set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) # The version number. set(VERSION_MAJOR 0) -set(VERSION_MINOR 2) -set(VERSION_PATCH 0) +set(VERSION_MINOR 3) +set(VERSION_PATCH 1) configure_file( "caesium/config.h.in" diff --git a/caesium/CMakeLists.txt b/caesium/CMakeLists.txt index e817f04..0aeaef3 100644 --- a/caesium/CMakeLists.txt +++ b/caesium/CMakeLists.txt @@ -4,8 +4,8 @@ find_library(zoflipng zopflipng /usr/local/lib) find_library(jpeg /opt/mozjpeg/lib) find_library(turbojpeg turbojpeg /opt/mozjpeg/lib) -add_library(caesium SHARED caesium.c error.c utils.c png.c lodepng.c jpeg.c tiff.c) -add_library(caesium_static STATIC caesium.c error.c utils.c png.c lodepng.c jpeg.c tiff.c) +add_library(caesium SHARED caesium.c error.c utils.c png.c lodepng.c jpeg.c) +add_library(caesium_static STATIC caesium.c error.c utils.c png.c lodepng.c jpeg.c) set_target_properties(caesium_static PROPERTIES OUTPUT_NAME caesium) @@ -20,7 +20,7 @@ if (APPLE) install(FILES caesium.h DESTINATION /usr/local/include) install(TARGETS LIBRARY DESTINATION /usr/local/lib) install(TARGETS ARCHIVE DESTINATION /usr/local/lib) -elseif (UNIX AND NOT APPLE) +elseif (UNIX) install(FILES caesium.h DESTINATION /usr/include) install(TARGETS LIBRARY DESTINATION /usr/lib) install(TARGETS ARCHIVE DESTINATION /usr/lib) diff --git a/caesium/caesium.c b/caesium/caesium.c index 8b69b58..c69d4c1 100644 --- a/caesium/caesium.c +++ b/caesium/caesium.c @@ -5,7 +5,6 @@ #include "utils.h" #include "png.h" #include "jpeg.h" -#include "tiff.h" bool cs_compress(const char *input_path, const char *output_path, cs_image_pars *options) { @@ -34,8 +33,6 @@ bool cs_compress(const char *input_path, const char *output_path, cs_image_pars } } else if (type == CS_PNG) { result = cs_png_optimize(input_path, output_path, &options->png); - } else if (type == CS_TIFF) { - result = cs_tiff_optimize(input_path, output_path, &options->tiff); } return result; @@ -58,18 +55,12 @@ void initialize_png_parameters(cs_image_pars *par) par->png.auto_filter_strategy = 1; } -void initialize_tiff_parameters(cs_image_pars *par) -{ - par->tiff.compression = 0; -} - cs_image_pars initialize_parameters() { cs_image_pars options; initialize_jpeg_parameters(&options); initialize_png_parameters(&options); - initialize_tiff_parameters(&options); return options; } \ No newline at end of file diff --git a/caesium/caesium.h b/caesium/caesium.h index b4c2860..cba71c1 100644 --- a/caesium/caesium.h +++ b/caesium/caesium.h @@ -32,23 +32,16 @@ typedef struct cs_png_pars int auto_filter_strategy; } cs_png_pars; -typedef struct cs_tiff_pars -{ - int compression; -} cs_tiff_pars; - typedef struct cs_image_pars { cs_jpeg_pars jpeg; cs_png_pars png; - cs_tiff_pars tiff; } cs_image_pars; typedef enum image_type { CS_JPEG, CS_PNG, - CS_TIFF, UNKN, } image_type; diff --git a/caesium/tiff.c b/caesium/tiff.c deleted file mode 100644 index 05e3b66..0000000 --- a/caesium/tiff.c +++ /dev/null @@ -1,15 +0,0 @@ -#include "tiff.h" - - -bool cs_tiff_optimize(const char *input, const char *output, cs_tiff_pars* options) -{ - TIFF* in; - TIFF* out; - - in = TIFFOpen(input, "rb"); - - TIFFClose(in); - TIFFClose(out); - - return true; -} \ No newline at end of file diff --git a/caesium/tiff.h b/caesium/tiff.h deleted file mode 100644 index 761a737..0000000 --- a/caesium/tiff.h +++ /dev/null @@ -1,11 +0,0 @@ -#include - -#ifndef LIBCAESIUM_TIFF_H -#define LIBCAESIUM_TIFF_H - -#include -#include "caesium.h" - -bool cs_tiff_optimize(const char *input, const char *output, cs_tiff_pars* options); - -#endif //LIBCAESIUM_TIFF_H diff --git a/caesium/utils.c b/caesium/utils.c index ab775b6..79b185e 100644 --- a/caesium/utils.c +++ b/caesium/utils.c @@ -6,14 +6,14 @@ image_type detect_image_type(FILE *pFile) { - unsigned char buffer[4]; + unsigned char buffer[2]; if (pFile == NULL) { display_error(WARNING, 101); return UNKN; } - if (fread(buffer, 1, 4, pFile) < 4) { + if (fread(buffer, 1, 2, pFile) < 2) { return UNKN; } @@ -21,9 +21,6 @@ image_type detect_image_type(FILE *pFile) return CS_JPEG; } else if (buffer[0] == 0x89 && buffer[1] == 0x50) { return CS_PNG; - } else if ((buffer[0] == 0x49 && buffer[1] == 0x49 && buffer[2] == 0x2A && buffer[3] == 0x00) - || (buffer[0] == 0x4D && buffer[1] == 0x4D && buffer[2] == 0x00 && buffer[3] == 0x2A)) { - return CS_TIFF; } return UNKN; diff --git a/demo/CMakeLists.txt b/demo/CMakeLists.txt index 1341edd..79ca8e2 100644 --- a/demo/CMakeLists.txt +++ b/demo/CMakeLists.txt @@ -1,5 +1,3 @@ add_executable(caesiumd main.c) -target_link_libraries(caesiumd LINK_PUBLIC caesium) - -install(TARGETS caesiumd DESTINATION bin) \ No newline at end of file +target_link_libraries(caesiumd LINK_PUBLIC caesium) \ No newline at end of file