Initial commit

This commit is contained in:
Max Wash
2020-03-30 20:04:17 +01:00
commit 5d12a5ecf2
6 changed files with 285 additions and 0 deletions

14
CMakeLists.txt Normal file
View File

@@ -0,0 +1,14 @@
cmake_minimum_required(VERSION 3.5)
project(photon)
file(GLOB_RECURSE photon_sources
${CMAKE_SOURCE_DIR}/photon/*.c
${CMAKE_SOURCE_DIR}/photon/*.h)
message(STATUS "Sources: " ${photon_sources})
add_library(photon_obj OBJECT ${photon_sources})
add_library(photon SHARED $<TARGET_OBJECTS:photon_obj>)
add_library(photon_s STATIC $<TARGET_OBJECTS:photon_obj>)
set_property(TARGET photon_obj PROPERTY POSITION_INDEPENDENT_CODE ON)