####################################################################
# The Falcon Programming Language
#
# CMake configuration file for math_extra
####################################################################

# Creates the proper module file name from the project name.
falcon_define_module( CURRENT_MODULE math_extra )

# Inclusion settings
include_directories(
  ${CMAKE_CURRENT_SOURCE_DIR}
)

# Sources files the module is built from.
set(SRC_FILES 
  math_extra.cpp
  math_extra_mod.cpp
  math_extra_ext.cpp
)

# These are actually not needed by cmake to build. But if omitted they won't be
# listed in the virtual file tree of Visual Studio.
set(HDR_FILES
  math_extra_ext.h
  math_extra_mod.h
)

# Builds and links from the source files
add_library( ${CURRENT_MODULE} MODULE
   ${SRC_FILES}
   ${HDR_FILES} # optional, see comment above.
)

# If your module needs some lib more, use the followings:
target_link_libraries( ${CURRENT_MODULE} falcon_engine)

falcon_install_module( ${CURRENT_MODULE} )

